Example usage for org.hibernate.mapping Collection getCacheRegionName

List of usage examples for org.hibernate.mapping Collection getCacheRegionName

Introduction

In this page you can find the example usage for org.hibernate.mapping Collection getCacheRegionName.

Prototype

public String getCacheRegionName() 

Source Link

Usage

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);
}