Whereas jakarta. allows settings to be specified
using stringly-typed jakarta.s, this annotation
is typesafe.
Note that the members of this annotation correspond to hints enumerated by
org..
org.hibernate.query.Query
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public @Remove CacheModeType | cacheMode()
Deprecated
since 6.2. use
The cache interaction mode for this query.
cacheStoreMode() and
cacheRetrieveMode() since
CacheModeType is deprecated
|
| public String | |
| public CacheRetrieveMode | |
| public CacheStoreMode | |
| public String | |
| public int | |
| public FlushModeType | |
| public String | |
| public String | |
| public boolean | |
| public int |
| cacheable | back to summary |
|---|---|
| public boolean cacheable() Whether the query results are cacheable.
Default is | |
| cacheMode | back to summary |
|---|---|
| public @Remove CacheModeType cacheMode()
The cache interaction mode for this query.
| |
| cacheRegion | back to summary |
|---|---|
| public String cacheRegion() If the query results are cacheable, the name of the query cache region. | |
| cacheRetrieveMode | back to summary |
|---|---|
| public CacheRetrieveMode cacheRetrieveMode() The cache retrieval mode for objects returned by this query. | |
| cacheStoreMode | back to summary |
|---|---|
| public CacheStoreMode cacheStoreMode() The cache storage mode for objects returned by this query. | |
| comment | back to summary |
|---|---|
| public String comment() A comment added to the generated SQL query. Useful when engaging with DBA. | |
| fetchSize | back to summary |
|---|---|
| public int fetchSize() The number of rows fetched by the JDBC driver per trip. | |
| flushMode | back to summary |
|---|---|
| public FlushModeType flushMode() The flush mode for this query. | |
| name | back to summary |
|---|---|
| public String name() The name of this query. Must be unique within a persistence unit. | |
| query | back to summary |
|---|---|
| public String query() The text of the HQL query. | |
| readOnly | back to summary |
|---|---|
| public boolean readOnly() Whether the results should be loaded in read-only mode.
Default is | |
| timeout | back to summary |
|---|---|
| public int timeout() The query timeout in seconds. Default is no timeout. | |