Search in sources :

Example 1 with CachingRegionFactory

use of org.hibernate.testing.cache.CachingRegionFactory in project hibernate-orm by hibernate.

the class SharedRegionTest method configureStandardServiceRegistryBuilder.

@Override
protected void configureStandardServiceRegistryBuilder(StandardServiceRegistryBuilder ssrb) {
    super.configureStandardServiceRegistryBuilder(ssrb);
    ssrb.applySetting(AvailableSettings.USE_SECOND_LEVEL_CACHE, true);
    ssrb.applySetting(AvailableSettings.CACHE_REGION_FACTORY, new CachingRegionFactory());
}
Also used : CachingRegionFactory(org.hibernate.testing.cache.CachingRegionFactory)

Aggregations

CachingRegionFactory (org.hibernate.testing.cache.CachingRegionFactory)1