Home » Search

About NamedQueries

11-20 of 34Refresh
Forum
24

can not use spring-data-jpa repository with NamedQuery

in spring-data-jpa named queries are used to implement repository interface methods, see http://static.springsource.org/spring-data/data-jpa/docs/current/reference/html/#jpa.query-methods.named-queries for example @NamedQuery(name = "Foo.findByBar", query = "select f from Foo f where :bar member
Forum
24

Using Enum type in NamedQuery: Field is not found in type

JPA Named Query @NamedQuery(name = "TestQuery",                 query = "select obj from Obj
Manual
20

Setting and Tuning of JPA Queries

); For a named query definition - using the hints element: @NamedQuery(name="Country.findAll", query="SELECT
Result
20

ObjectDB Object Database Features

annotations (@NamedQuery) and XML. Query parameters for efficient reuse of one query in multiple executions
Forum
8

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

.NamedQuery; import javax.persistence.NamedQueries; import javax.ejb.TransactionAttribute; import ... .TransactionManagementType; @NamedQueries( { @NamedQuery(          name="Guest.getAll ... );   if ( type == null )     System.out.println( "ManagedType Guest not found"  );   // NamedQuery does
Forum
6

Problem with entities detection

; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence ... ") @XmlRootElement @NamedQueries({ @NamedQuery(name = "Alumno_odb.findAll", query = "SELECT a FROM Alumno a") , @NamedQuery(name = "Alumno_odb.findByDni", query = "SELECT a FROM Alumno
Forum
6

openejb jpa jaas module

(); final int id = info.getId(); final TypedQuery namedQuery = entityManager ... > resultList = namedQuery.getResultList(); for (UserPrincipal userPrincipal : resultList ... . */ @Cacheable @Entity @SequenceGenerator(name="seq", initialValue=10000) @NamedQueries
JPA Doc
6

javax.persistence.PessimisticLockScope

with the NamedQuery annotation. Since: JPA 2.0 PessimisticLockScope EXTENDED In addition to the behavior
JPA Doc
6

javax.persistence.QueryHint

javax.persistence Annotation QueryHint Target: Used to supply a query property or hint to the NamedQuery or NamedNativeQuery annotation. Vendor-specific hints that are not recognized by a provider are ignored. Since: JPA 1.0 String name Name of the hint. Name of the hint. Since: JPA 1.0 String
Forum
5

Duplicate Entity class names causes Exception in Query

, only one of them is mentioned in the persistence.xml. I a NamedQuery I use the unqualified class name ... .... @Entity @NamedQueries({ @NamedQuery(name = "objdbTest.Singleton.getItem", query = "SELECT o FROM Item o WHERE o.cachedKey = :cachedKey"), @NamedQuery(name = "objdbTest.Singleton.count", query