Class HibernateBridgingQueryHints.Hibernate5Hints

java.lang.Object
org.broadleafcommerce.common.persistence.HibernateBridgingQueryHints.Hibernate5Hints
Enclosing class:
HibernateBridgingQueryHints

public static class HibernateBridgingQueryHints.Hibernate5Hints extends Object
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 Details

    • NATIVE_LOCKMODE

      public static final String NATIVE_LOCKMODE
      Available to apply lock mode to a native SQL query since JPA requires that Query.setLockMode(javax.persistence.LockModeType) throw an IllegalStateException if called for a native query.

      Accepts a LockModeType or a LockMode

      See Also:
    • FETCHGRAPH

      public static final String 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

      public static final String 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

      public static final String FOLLOW_ON_LOCKING
      Hint to enable/disable the follow-on-locking mechanism provided by Dialect.useFollowOnLocking(QueryParameters). A value of true enables follow-on-locking, whereas a value of false disables it. If the value is null, the the Dialect strategy is going to be used instead.
      Since:
      5.2
      See Also:
    • PASS_DISTINCT_THROUGH

      public static final String PASS_DISTINCT_THROUGH
      Hint to enable/disable the pass-distinct-through mechanism. A value of true enables pass-distinct-through, whereas a value of false disables 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()