public final class HibernateUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
HibernateUtil() |
Modifier and Type | Method and Description |
---|---|
(package private) static Configuration |
loadAndCorrectConfiguration(java.net.URL url)
Create a cache manager configuration from the supplied url, correcting it for Hibernate compatibility.
|
(package private) static Configuration |
overwriteCacheManagerIfConfigured(Configuration configuration,
java.util.Properties properties)
Will overwrite the CacheManager name from the passed in configuration with the value of
net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory#NET_SF_EHCACHE_CACHE_MANAGER_NAME of the passed in Properties
|
private static void |
setupHibernateTimeoutBehavior(NonstopConfiguration nonstopConfig) |
(package private) static void |
validateEhcache(Ehcache cache)
Validates that the supplied Ehcache instance is valid for use as a Hibernate cache.
|
static Configuration loadAndCorrectConfiguration(java.net.URL url)
Currently correcting for Hibernate compatibility means simply switching any identity based value modes to serialization.
private static void setupHibernateTimeoutBehavior(NonstopConfiguration nonstopConfig)
static void validateEhcache(Ehcache cache) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
static Configuration overwriteCacheManagerIfConfigured(Configuration configuration, java.util.Properties properties)
configuration
- the configurationproperties
- the properties passed in from Hibernate