@Repeatable(NamedNativeQueries.class) @Target(TYPE) @Retention(RUNTIME) public @interface NamedNativeQuery
NamedNativeQuery
annotation can be applied to an
entity or mapped superclass.Modifier and Type | Required Element | Description |
---|---|---|
java.lang.String |
name |
The name used to refer to the query with the
EntityManager
methods that create query objects. |
java.lang.String |
query |
The SQL query string.
|
Modifier and Type | Optional Element | Description |
---|---|---|
QueryHint[] |
hints |
Query properties and hints.
|
java.lang.Class |
resultClass |
The class of the result.
|
java.lang.String |
resultSetMapping |
The name of a
SqlResultSetMapping , as defined in metadata. |
java.lang.String name
EntityManager
methods that create query objects.QueryHint[] hints
java.lang.String resultSetMapping
SqlResultSetMapping
, as defined in metadata.Copyright © 2018. All rights reserved.