HHH-7089 Return naturalId cache region instead of null
This commit is contained in:
parent
9f4fd48603
commit
fd6b3b4db4
|
@ -35,6 +35,7 @@ import org.hibernate.cache.CacheException;
|
|||
import org.hibernate.cache.ehcache.internal.nonstop.NonstopAccessStrategyFactory;
|
||||
import org.hibernate.cache.ehcache.internal.regions.EhcacheCollectionRegion;
|
||||
import org.hibernate.cache.ehcache.internal.regions.EhcacheEntityRegion;
|
||||
import org.hibernate.cache.ehcache.internal.regions.EhcacheNaturalIdRegion;
|
||||
import org.hibernate.cache.ehcache.internal.regions.EhcacheQueryResultsRegion;
|
||||
import org.hibernate.cache.ehcache.internal.regions.EhcacheTimestampsRegion;
|
||||
import org.hibernate.cache.ehcache.internal.strategy.EhcacheAccessStrategyFactory;
|
||||
|
@ -134,8 +135,7 @@ abstract class AbstractEhcacheRegionFactory implements RegionFactory {
|
|||
@Override
|
||||
public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata)
|
||||
throws CacheException {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
return new EhcacheNaturalIdRegion( accessStrategyFactory, getCache( regionName ), settings, metadata, properties );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue