|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface NamedQuery
The NamedQuery annotation is used to specify a named query in the Java Persistence query language.
| Required Element Summary | |
|---|---|
String |
name
Name refers to the query when using the EntityManager methods that create query objects. |
String |
query
Query to use. |
| Optional Element Summary | |
|---|---|
QueryHint[] |
hints
Some hints for the query. |
| 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 | |||||||||