Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12086

Hibernate 2lc should be enabled if Hibernate cache properties are enabled and shared cache mode is not set to NONE

XMLWordPrintable

      In org.jboss.as.jpa.hibernate5.HibernatePersistenceProviderAdaptor.addProviderDependencies(PersistenceUnitMetadata pu), enable second level cache if persistence unit has hibernate.cache.use_query_cache or hibernate.cache.use_second_level_cache is true, then the second level cache should be enabled unless shared cache mode is set to NONE.

      Workaround:

      <shared-cache-mode>ALL</shared-cache-mode>
      

      Or

      <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode> 
      

              smarlow1@redhat.com Scott Marlow
              smarlow1@redhat.com Scott Marlow
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: