[jboss-jira] [JBoss JIRA] (WFLY-12086) Hibernate 2lc should be enabled if Hibernate cache properties are enabled and shared cache mode is not set to NONE
Scott Marlow (Jira)
issues at jboss.org
Thu May 16 15:47:00 EDT 2019
Scott Marlow created WFLY-12086:
-----------------------------------
Summary: 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: Enhancement
Components: JPA / Hibernate
Affects Versions: 14.0.0.Final
Reporter: Scott Marlow
Assignee: Scott Marlow
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}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list