Class HibernateBridgingQueryHints.Hibernate5Hints
java.lang.Object
org.broadleafcommerce.common.persistence.HibernateBridgingQueryHints.Hibernate5Hints
- Enclosing class:
- HibernateBridgingQueryHints
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.
- Author:
- Phillip Verheyden (phillipuniverse)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHint providing a "fetchgraph" EntityGraph.static final StringHint to enable/disable the follow-on-locking mechanism provided byDialect.useFollowOnLocking(QueryParameters).static final StringHint providing a "loadgraph" EntityGraph.static final StringAvailable to apply lock mode to a native SQL query since JPA requires thatQuery.setLockMode(javax.persistence.LockModeType)throw an IllegalStateException if called for a native query.static final StringHint to enable/disable the pass-distinct-through mechanism. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NATIVE_LOCKMODE
Available to apply lock mode to a native SQL query since JPA requires thatQuery.setLockMode(javax.persistence.LockModeType)throw an IllegalStateException if called for a native query. Accepts aLockModeTypeor aLockMode- See Also:
-
FETCHGRAPH
Hint providing a "fetchgraph" EntityGraph. Attributes explicitly specified as AttributeNodes are treated as FetchType.EAGER (via join fetch or subsequent select). Note: Currently, attributes that are not specified are treated as FetchType.LAZY or FetchType.EAGER depending on the attribute's definition in metadata, rather than forcing FetchType.LAZY.- See Also:
-
LOADGRAPH
Hint providing a "loadgraph" EntityGraph. Attributes explicitly specified as AttributeNodes are treated as FetchType.EAGER (via join fetch or subsequent select). Attributes that are not specified are treated as FetchType.LAZY or FetchType.EAGER depending on the attribute's definition in metadata- See Also:
-
FOLLOW_ON_LOCKING
Hint to enable/disable the follow-on-locking mechanism provided byDialect.useFollowOnLocking(QueryParameters). A value oftrueenables follow-on-locking, whereas a value offalsedisables it. If the value isnull, the theDialectstrategy is going to be used instead.- Since:
- 5.2
- See Also:
-
PASS_DISTINCT_THROUGH
Hint to enable/disable the pass-distinct-through mechanism. A value oftrueenables pass-distinct-through, whereas a value offalsedisables it. When the pass-distinct-through is disabled, the HQL and JPQL distinct clause is no longer passed to the SQL statement.- Since:
- 5.2
- See Also:
-
-
Constructor Details
-
Hibernate5Hints
public Hibernate5Hints()
-