Class HibernateBridgingQueryHints

java.lang.Object
org.broadleafcommerce.common.persistence.HibernateBridgingQueryHints

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.

Author:
Phillip Verheyden (phillipuniverse)
  • Field Details

    • CACHE_MODE

      public static final String CACHE_MODE
      The cache mode to use.
      See Also:
      • Query.setCacheMode(org.hibernate.CacheMode)
      • SQLQuery.setCacheMode(org.hibernate.CacheMode)
      • Constant Field Values
    • CACHE_REGION

      public static final String CACHE_REGION
      The cache region to use.
      See Also:
    • CACHEABLE

      public static final String CACHEABLE
      Are the query results cacheable?
      See Also:
    • CALLABLE

      public static final String CALLABLE
      Is the query callable? Note: only valid for named native sql queries.
      See Also:
    • COMMENT

      public static final String COMMENT
      Defines a comment to be applied to the SQL sent to the database.
      See Also:
    • FETCH_SIZE

      public static final String FETCH_SIZE
      Defines the JDBC fetch size to use.
      See Also:
    • FLUSH_MODE

      public static final String FLUSH_MODE
      The flush mode to associate with the execution of the query.
      See Also:
      • Query.setFlushMode(org.hibernate.FlushMode)
      • SQLQuery.setFlushMode(javax.persistence.FlushModeType)
      • Session.setFlushMode(org.hibernate.FlushMode)
      • Constant Field Values
    • READ_ONLY

      public static final String READ_ONLY
      Should entities returned from the query be set in read only mode?
      See Also:
      • Query.setReadOnly(boolean)
      • SQLQuery.setReadOnly(boolean)
      • Session.setReadOnly(java.lang.Object, boolean)
      • Constant Field Values
    • TIMEOUT_HIBERNATE

      public static final String TIMEOUT_HIBERNATE
      Apply a Hibernate query timeout, which is defined in seconds.
      See Also:
    • TIMEOUT_JPA

      public static final String TIMEOUT_JPA
      Apply a JPA query timeout, which is defined in milliseconds.
      See Also: