Hibernate cache implementation that backs to the Spring Cache abstraction
LGPL-2.1 License
Hibernate SpringCache is a Hibernate cache implementation that backs to the Spring Cache abstraction. In other words, setup caching once in Spring then use it from Spring and Hibernate so configuration isn't duplicated.
This project has been submitted to Hibernate for inclusion: https://github.com/hibernate/hibernate-orm/pull/1639
<dependency>
<groupId>com.integralblue</groupId>
<artifactId>hibernate-springcache</artifactId>
<version>[INSERT VERSION HERE]</version>
<type>jar</type>
</dependency>
spring.jpa.properties.hibernate.cache.region.factory_class=com.integralblue.hibernate.cache.springcache.SpringCacheRegionFactory
com.integralblue.hibernate.cache.springcache.SpringCacheRegionFactoryAutoConfigure
will take care of the rest.com.integralblue.hibernate.cache.springcache.SpringCacheRegionFactoryBeanPostProcessor
bean post processor must be registered (add it as a bean using Spring Java or XML configuration).