[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:51:00 EDT 2019


     [ https://issues.jboss.org/browse/WFLY-12086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Marlow updated WFLY-12086:
--------------------------------
    Fix Version/s: 17.0.0.Beta1


> 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
>            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