public class HibernateBridgingQueryHints extends Object
Serves as a bridge class between Hibernate 4.1 and Hibernate 5.2. Designed to map directly to the org.hibernate.annotations.QueryHints static fields that appear in both Hibernate 4.1 and 5.2 but are named differently.
This class was duplicated directly from QueryHints
as it contains
all of the values from Hibernate 4.1 as well as additional values from Hibernate 5.2.
This class should only be used if you need Hibernate 4.1 (Broadleaf 5.2 and below) and Hibernate 5.2 (Broadleaf 6.0+) within the same artifact. This is a stop-gap solution to prevent hard-dependency upgrades within the Broadleaf platform and is not intended to be consumed by Broadleaf users.
Modifier and Type | Class and Description |
---|---|
static class |
HibernateBridgingQueryHints.Hibernate5Hints
All constants within this inner class only appear in Hibernate 5.2+ (Broadleaf 6.0+) and
are not guaranteed to work when running Hibernate versions earlier than 5.2.
|
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_MODE
The cache mode to use.
|
static String |
CACHE_REGION
The cache region to use.
|
static String |
CACHEABLE
Are the query results cacheable?
|
static String |
CALLABLE
Is the query callable? Note: only valid for named native sql queries.
|
static String |
COMMENT
Defines a comment to be applied to the SQL sent to the database.
|
static String |
FETCH_SIZE
Defines the JDBC fetch size to use.
|
static String |
FLUSH_MODE
The flush mode to associate with the execution of the query.
|
static String |
READ_ONLY
Should entities returned from the query be set in read only mode?
|
static String |
TIMEOUT_HIBERNATE
Apply a Hibernate query timeout, which is defined in seconds.
|
static String |
TIMEOUT_JPA
Apply a JPA query timeout, which is defined in milliseconds.
|
public static final String CACHE_MODE
Query.setCacheMode(org.hibernate.CacheMode)
,
SQLQuery.setCacheMode(org.hibernate.CacheMode)
,
Constant Field Valuespublic static final String CACHE_REGION
Query.setCacheRegion(java.lang.String)
,
SQLQuery.setCacheRegion(java.lang.String)
,
Constant Field Valuespublic static final String CACHEABLE
Query.setCacheable(boolean)
,
SQLQuery.setCacheable(boolean)
,
Constant Field Valuespublic static final String CALLABLE
public static final String COMMENT
Query.setComment(java.lang.String)
,
SQLQuery.setComment(java.lang.String)
,
Constant Field Valuespublic static final String FETCH_SIZE
Query.setFetchSize(int)
,
SQLQuery.setFetchSize(int)
,
Constant Field Valuespublic static final String FLUSH_MODE
Query.setFlushMode(org.hibernate.FlushMode)
,
SQLQuery.setFlushMode(javax.persistence.FlushModeType)
,
Session.setFlushMode(org.hibernate.FlushMode)
,
Constant Field Valuespublic static final String READ_ONLY
Query.setReadOnly(boolean)
,
SQLQuery.setReadOnly(boolean)
,
Session.setReadOnly(java.lang.Object, boolean)
,
Constant Field Valuespublic static final String TIMEOUT_HIBERNATE
Query.setTimeout(int)
,
SQLQuery.setTimeout(int)
,
Constant Field Valuespublic static final String TIMEOUT_JPA
Copyright © 2022. All rights reserved.