Use the queries area of the JPA Details view to create named queries and named native queries. Refer to "Creating queries" for additional information.
Property | Description | Default | Available for Entity Type |
---|---|---|---|
Queries |
Displays the existing Named and Native queries. Click Add to add a named or named native query by using the Add Query dialog. |
||
Named Queries |
|||
Name |
Name of the query. |
||
Query |
The query SQL. |
||
Lock mode |
Specify the JPA locking policy.
|
None |
|
Native Queries |
|||
Name |
Name of the query. |
||
Result class |
The class of the result. Note: This field appears for Native Named Queries only. |
||
Query |
The query SQL. |
||
Query hints |
Displays the existing query hints (Name and Value). Click Add to add a new query hint. |
Related tasks
Related reference
Related concepts
"Query Language" in the JPA Specification
http://jcp.org/en/jsr/detail?id=317