@Target(value={TYPE,PACKAGE}) @Retention(value=RUNTIME) public @interface NamedQuery
NamedQuery
with Hibernate features.Query
Modifier and Type | Required Element and Description |
---|---|
String |
name
The name of this
NamedQuery . |
String |
query
The query string for this
NamedQuery . |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
cacheable
Whether the query (results) is cacheable or not.
|
CacheModeType |
cacheMode
The cache mode used for this query.
|
String |
cacheRegion
If the query results are cacheable, name the query cache region to use.
|
String |
comment
A comment added to the generated SQL query.
|
int |
fetchSize
The number of rows fetched by the JDBC Driver per trip.
|
FlushModeType |
flushMode
The flush mode for this query.
|
boolean |
readOnly
Whether the results should be read-only.
|
int |
timeout
The query timeout (in seconds).
|
public abstract String name
NamedQuery
.public abstract String query
NamedQuery
.public abstract FlushModeType flushMode
public abstract boolean cacheable
false
, that is not cacheable.public abstract String cacheRegion
public abstract int fetchSize
public abstract int timeout
public abstract String comment
public abstract CacheModeType cacheMode
Copyright © 2016 JBoss by Red Hat. All rights reserved.