Skip to content

Commit 16252ae

Browse files
committed
Add JCacheRegionFactory property to Hibernate cache configuration
Signed-off-by: aazizali <[email protected]>
1 parent d1c49ac commit 16252ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

data/synapse-data-postgres/src/main/java/io/americanexpress/synapse/data/postgres/config/BasePostgresDataConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ private Properties additionalHibernateSpringProperties() {
8080
properties.setProperty("hibernate.cache.use_second_level_cache", "true");
8181
properties.setProperty("hibernate.cache.use_query_cache", "true");
8282
properties.setProperty("hibernate.cache.provider_class", "org.ehcache.jsr107.EhcacheCachingProvider");
83+
properties.setProperty("hibernate.cache.region.factory_class", "org.hibernate.cache.jcache.internal.JCacheRegionFactory" );
8384
properties.setProperty("hibernate.javax.cache.uri", environment.getProperty("hibernate.javax.cache.uri", "classpath:ehcache.xml"));
8485
return properties;
8586
}

0 commit comments

Comments
 (0)