| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={TYPE,PACKAGE})
@Retention(value=RUNTIME)
public @interface NamedNativeQuery
Extends NamedNativeQuery with Hibernate features
| Required Element Summary | |
|---|---|
|  String | name | 
|  String | query | 
| Optional Element Summary | |
|---|---|
|  boolean | cacheablemark the query as cacheable or not | 
|  CacheModeType | cacheModethe cache mode used for this query | 
|  String | cacheRegionthe cache region to use | 
|  boolean | callable | 
|  String | commentcomment added to the SQL query, useful for the DBA | 
|  int | fetchSizethe number of rows fetched by the JDBC Driver per roundtrip | 
|  FlushModeType | flushModethe flush mode for the query | 
|  boolean | readOnlymarks whether the results are fetched in read-only mode or not | 
|  Class | resultClass | 
|  String | resultSetMapping | 
|  int | timeoutthe query timeout in seconds | 
| Element Detail | 
|---|
public abstract String name
public abstract String query
public abstract Class resultClass
public abstract String resultSetMapping
public abstract FlushModeType flushMode
public abstract boolean cacheable
public abstract String cacheRegion
public abstract int fetchSize
public abstract int timeout
public abstract boolean callable
public abstract String comment
public abstract CacheModeType cacheMode
public abstract boolean readOnly
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||