]
James Perkins resolved WFLY-12086.
----------------------------------
Resolution: Done
Hibernate 2lc should be enabled if Hibernate cache properties are
enabled and shared cache mode is not set to NONE
------------------------------------------------------------------------------------------------------------------
Key: WFLY-12086
URL:
https://issues.jboss.org/browse/WFLY-12086
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 14.0.0.Final
Reporter: Scott Marlow
Assignee: Scott Marlow
Priority: Blocker
Fix For: 17.0.0.Beta1
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:
{code}
<shared-cache-mode>ALL</shared-cache-mode>
{code}
Or
{code}
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
{code}