public static final String ENTITY_CACHE = "ENTITIES";
public static final String ASSOCIATION_CACHE = "ASSOCIATIONS";
public static final String IDENTIFIER_CACHE = "IDENTIFIERS";
public static GridMetadataManager getGridMetadataManager(SessionFactoryImplementor factory) {
final SessionFactoryObserver sessionFactoryObserver = factory.getFactoryObserver();
if ( sessionFactoryObserver instanceof GridMetadataManager ) {
return ( GridMetadataManager ) sessionFactoryObserver;
}
else {
StringBuilder error = new StringBuilder("Cannot get CacheManager for OGM. ");