public class HibernateNaturalIdRegion extends HibernateTransactionalDataRegion
NaturalIdRegion. This region is used to store naturalId data.
L2 cache for entity naturalId and target cache region can be set using annotations:
@javax.persistence.Entity
@javax.persistence.Cacheable
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@org.hibernate.annotations.NaturalIdCache
public class Entity {
@org.hibernate.annotations.NaturalId
private String entityCode;
...
}
cache, ignite| Constructor and Description |
|---|
HibernateNaturalIdRegion(HibernateRegionFactory factory,
String name,
Ignite ignite,
HibernateCacheProxy cache,
CacheDataDescription dataDesc) |
| Modifier and Type | Method and Description |
|---|---|
NaturalIdRegionAccessStrategy |
buildAccessStrategy(org.hibernate.cache.spi.access.AccessType accessType) |
getCacheDataDescription, isTransactionAwareclear, destroy, getElementCountInMemory, getElementCountOnDisk, getSizeInMemorypublic HibernateNaturalIdRegion(HibernateRegionFactory factory, String name, Ignite ignite, HibernateCacheProxy cache, CacheDataDescription dataDesc)
factory - Region factory.name - Region name.ignite - Grid.cache - Region cache,dataDesc - Region data description.
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025