HHH-7809 - ehcache region factory should set a name for the CacheManager

This commit is contained in:
Steve Ebersole 2018-03-28 14:39:49 -05:00
parent a35139ec3e
commit 1a75fb3bbb
1 changed files with 2 additions and 2 deletions

View File

@ -8,13 +8,13 @@ package org.hibernate.cache.ehcache.internal;
import java.net.URL;
import java.util.Map;
import java.util.UUID;
import net.sf.ehcache.config.CacheConfiguration;
import net.sf.ehcache.config.Configuration;
import net.sf.ehcache.config.ConfigurationFactory;
import net.sf.ehcache.config.NonstopConfiguration;
import net.sf.ehcache.config.TimeoutBehaviorConfiguration.TimeoutBehaviorType;
import org.hibernate.boot.spi.SessionFactoryOptions;
import static org.hibernate.cache.ehcache.ConfigSettings.EHCACHE_CONFIGURATION_CACHE_MANAGER_NAME;
@ -75,7 +75,7 @@ public final class HibernateEhcacheUtils {
configuration.setName( sessionFactoryName );
}
else {
configuration.setName( "Hibernate " + UUID.randomUUID().toString() );
configuration.setName( "Hibernate " + settings.getUuid() );
}
}
}