Search in sources :

Example 1 with NaturalIdRegionImpl

use of org.hibernate.cache.infinispan.naturalid.NaturalIdRegionImpl in project hibernate-orm by hibernate.

the class InfinispanRegionFactory method buildNaturalIdRegion.

@Override
public NaturalIdRegion buildNaturalIdRegion(String regionName, Map<String, Object> configValues, CacheDataDescription metadata) {
    if (log.isDebugEnabled()) {
        log.debug("Building natural id cache region [" + regionName + "]");
    }
    final AdvancedCache cache = getCache(regionName, DataType.NATURAL_ID, metadata);
    final NaturalIdRegionImpl region = new NaturalIdRegionImpl(cache, regionName, transactionManager, metadata, this, getCacheKeysFactory());
    startRegion(region);
    return region;
}
Also used : NaturalIdRegionImpl(org.hibernate.cache.infinispan.naturalid.NaturalIdRegionImpl) AdvancedCache(org.infinispan.AdvancedCache)

Aggregations

NaturalIdRegionImpl (org.hibernate.cache.infinispan.naturalid.NaturalIdRegionImpl)1 AdvancedCache (org.infinispan.AdvancedCache)1