Skip to content

Commit fd6b3b4

Browse files
edalquistSteve Ebersole
authored andcommitted
HHH-7089 Return naturalId cache region instead of null
1 parent 9f4fd48 commit fd6b3b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-ehcache/src/main/java/org/hibernate/cache/ehcache/AbstractEhcacheRegionFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.hibernate.cache.ehcache.internal.nonstop.NonstopAccessStrategyFactory;
3636
import org.hibernate.cache.ehcache.internal.regions.EhcacheCollectionRegion;
3737
import org.hibernate.cache.ehcache.internal.regions.EhcacheEntityRegion;
38+
import org.hibernate.cache.ehcache.internal.regions.EhcacheNaturalIdRegion;
3839
import org.hibernate.cache.ehcache.internal.regions.EhcacheQueryResultsRegion;
3940
import org.hibernate.cache.ehcache.internal.regions.EhcacheTimestampsRegion;
4041
import org.hibernate.cache.ehcache.internal.strategy.EhcacheAccessStrategyFactory;
@@ -134,8 +135,7 @@ public EntityRegion buildEntityRegion(String regionName, Properties properties,
134135
@Override
135136
public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata)
136137
throws CacheException {
137-
// TODO Auto-generated method stub
138-
return null;
138+
return new EhcacheNaturalIdRegion( accessStrategyFactory, getCache( regionName ), settings, metadata, properties );
139139
}
140140

141141
/**

0 commit comments

Comments
 (0)