[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
James Perkins (Jira)
issues at jboss.org
Mon May 20 10:56:00 EDT 2019
[ https://issues.jboss.org/browse/WFLY-12086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list