|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface NamedQuery
Is used to specify a named query in the Java Persistence query language, which is a static query expressed in metadata. Query names are scoped to the persistence unit.
Required Element Summary | |
---|---|
String |
name
Refers to the query when using the EntityManager methods that create query objects. |
String |
query
The query string in the Java Persistence query language |
Optional Element Summary | |
---|---|
QueryHint[] |
hints
Vendor-specific query hints |
Element Detail |
---|
public abstract String name
public abstract String query
public abstract QueryHint[] hints
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |