|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface NamedNativeQuery
Is used to specify a native SQL named query. Query names are scoped to the persistence unit.
Required Element Summary | |
---|---|
java.lang.String |
name
Is used to refer to the query when using the EntityManager
methods that create query objects. |
java.lang.String |
query
The SQL query string |
Optional Element Summary | |
---|---|
QueryHint[] |
hints
Vendor-specific query hints |
java.lang.Class |
resultClass
The class of the result |
java.lang.String |
resultSetMapping
The name of a SqlResultSetMapping , as defined in metadata |
Element Detail |
---|
public abstract java.lang.String name
EntityManager
methods that create query objects.
public abstract java.lang.String query
public abstract QueryHint[] hints
public abstract java.lang.Class resultClass
public abstract java.lang.String resultSetMapping
SqlResultSetMapping
, as defined in metadata
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |