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

    Details

      Description

      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> 
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                smarlow Scott Marlow
                Reporter:
                smarlow Scott Marlow
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: