|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface NamedNativeQuery
Specifies a named native SQL query. Query names are scoped to the persistence unit. The NamedNativeQuery annotation can be applied to an entity or mapped superclass.
| Required Element Summary | |
|---|---|
java.lang.String |
nameThe name used to refer to the query with the EntityManager methods that create query objects. |
java.lang.String |
queryThe SQL query string. |
| Optional Element Summary | |
|---|---|
QueryHint[] |
hintsQuery properties and hints. |
java.lang.Class |
resultClassThe class of the result. |
java.lang.String |
resultSetMappingThe 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.
|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||