}
isAbstract = entityClazz.isAbstract();
}
private static Caching createCaching(XMLHibernateMapping.XMLClass entityClazz, String entityName) {
XMLCacheElement cache = entityClazz.getCache();
if ( cache == null ) {
return null;
}
final String region = cache.getRegion() != null ? cache.getRegion() : entityName;
final AccessType accessType = Enum.valueOf( AccessType.class, cache.getUsage() );
final boolean cacheLazyProps = !"non-lazy".equals( cache.getInclude() );
return new Caching( region, accessType, cacheLazyProps );
}