Home » Search

About NamedQueries

1-10 of 32Refresh
Manual
158

JPA Named Queries

dynamically into the query string and results in more efficient queries. @NamedQuery and @NamedQueries Annotations The following @NamedQuery annotation defines a query whose name is "Country.findAll" that retrieves all the Country objects in the database: @NamedQuery(name="Country.findAll", query
JPA Doc
92

javax.persistence.NamedQueries

javax.persistence Annotation NamedQueries Target: Classes Specifies multiple named Java Persistence query language queries. Query names are scoped to the persistence unit. The NamedQueries annotation can be applied to an entity or mapped superclass. Since: JPA 1.0 See Also: NamedQuery Learn
JPA Doc
88

javax.persistence.NamedQuery

javax.persistence Annotation NamedQuery Target: Classes Specifies a static, named query in the Java Persistence query language. Query names are scoped to the persistence unit. The NamedQuery ... of a named query in the Java Persistence query language: @NamedQuery( name
JPA Doc
88

NamedQueries.value

Annotation Element javax.persistence.NamedQueries NamedQuery[] value (Required) An array of NamedQuery annotations. Since: JPA 1.0
JPA Doc
83

NamedQuery.hints

Annotation Element javax.persistence.NamedQuery QueryHint[] hints (Optional) Query properties and hints. May include vendor-specific query hints. Default value: {} Since: JPA 1.0
JPA Doc
83

NamedQuery.lockMode

Annotation Element javax.persistence.NamedQuery LockModeType lockMode (Optional) The lock mode type to use in query execution. If a lockMode other than LockModeType.NONE is specified, the query must be executed in a transaction. Default value: javax.persistence.LockModeType.NONE Since: JPA 2.0
JPA Doc
83

NamedQuery.name

Annotation Element javax.persistence.NamedQuery String name (Required) The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0
JPA Doc
83

NamedQuery.query

Annotation Element javax.persistence.NamedQuery String query (Required) The query string in the Java Persistence query language. Since: JPA 1.0
JPA Doc
77

JPA Annotations for JPQL Queries

Reference (JavaDoc) of JPA 2 query annotations, including @NamedQueries, @NamedQuery and @QueryHint.
Manual
31

JPA Query API

for building static queries, as named queries, using the @NamedQuery and @NamedQueries annotations