@Target(value={TYPE,PACKAGE}) @Retention(value=RUNTIME) public @interface NamedQuery
NamedQuery with Hibernate features.Query| Modifier and Type | Required Element and Description | 
|---|---|
| String | nameThe name of this  NamedQuery. | 
| String | queryThe query string for this  NamedQuery. | 
| Modifier and Type | Optional Element and Description | 
|---|---|
| boolean | cacheableWhether the query (results) is cacheable or not. | 
| CacheModeType | cacheModeThe cache mode used for this query. | 
| String | cacheRegionIf the query results are cacheable, name the query cache region to use. | 
| String | commentA comment added to the generated SQL query. | 
| int | fetchSizeThe number of rows fetched by the JDBC Driver per trip. | 
| FlushModeType | flushModeThe flush mode for this query. | 
| boolean | readOnlyWhether the results should be read-only. | 
| int | timeoutThe 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.