Package org.hibernate.annotations
Annotation Type NamedQuery
-
@Target({TYPE,PACKAGE}) @Retention(RUNTIME) @Repeatable(NamedQueries.class) public @interface NamedQueryExtendsNamedQuerywith Hibernate features.- See Also:
Query
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleancacheableWhether the query (results) is cacheable or not.CacheModeTypecacheModeThe cache mode used for this query.java.lang.StringcacheRegionIf the query results are cacheable, name the query cache region to use.java.lang.StringcommentA comment added to the generated SQL query.intfetchSizeThe number of rows fetched by the JDBC Driver per trip.FlushModeTypeflushModeThe flush mode for this query.booleanreadOnlyWhether the results should be read-only.inttimeoutThe query timeout (in seconds).
-
-
-
-
flushMode
FlushModeType flushMode
The flush mode for this query.- Default:
- org.hibernate.annotations.FlushModeType.PERSISTENCE_CONTEXT
-
-
-
cacheMode
CacheModeType cacheMode
The cache mode used for this query. This refers to entities/collections returned from the query.- Default:
- org.hibernate.annotations.CacheModeType.NORMAL
-
-