List of usage examples for org.hibernate.mapping Collection getCacheRegionName
public String getCacheRegionName()
From source file:com.enonic.cms.store.hibernate.cache.invalidation.InvalidationRulesBuilder.java
License:Open Source License
/** * Build the value mapping.//from w w w. j a v a2 s. c o m */ private void buildMapping(Collection mapping) { String cacheRegion = mapping.getCacheRegionName(); String collectionTable = mapping.getCollectionTable().getName(); TableInvalidation rules = getOrCreateTableRule(collectionTable); rules.addCollectionRole(cacheRegion); }