public class PortalHibernateConfiguration
extends org.springframework.orm.hibernate5.LocalSessionFactoryBean
| Constructor and Description |
|---|
PortalHibernateConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected org.hibernate.SessionFactory |
buildSessionFactory(org.springframework.orm.hibernate5.LocalSessionFactoryBuilder localSessionFactoryBuilder) |
protected java.lang.ClassLoader |
getConfigurationClassLoader() |
protected java.lang.String[] |
getConfigurationResources() |
protected static java.util.Map<java.lang.String,java.lang.Class<?>> |
getPreloadClassLoaderClasses() |
protected void |
readResource(org.hibernate.cfg.Configuration configuration,
java.lang.String resource) |
protected void |
readResource(org.hibernate.cfg.Configuration configuration,
java.net.URL url) |
void |
setConfigurationResources(java.lang.String[] configurationResources) |
void |
setDataSource(javax.sql.DataSource dataSource) |
void |
setMvccEnabled(boolean mvccEnabled) |
destroy, getConfiguration, getHibernateProperties, getMetadataSources, getObject, getObjectType, getResourceLoader, isSingleton, setAnnotatedClasses, setAnnotatedPackages, setBeanFactory, setBootstrapExecutor, setCacheableMappingLocations, setCacheRegionFactory, setConfigLocation, setConfigLocations, setCurrentTenantIdentifierResolver, setEntityInterceptor, setEntityTypeFilters, setHibernateIntegrators, setHibernateProperties, setImplicitNamingStrategy, setJtaTransactionManager, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setMetadataSources, setMultiTenantConnectionProvider, setPackagesToScan, setPhysicalNamingStrategy, setResourceLoaderpublic void afterPropertiesSet()
throws java.io.IOException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.orm.hibernate5.LocalSessionFactoryBeanjava.io.IOExceptionpublic void setConfigurationResources(java.lang.String[] configurationResources)
public void setDataSource(javax.sql.DataSource dataSource)
setDataSource in class org.springframework.orm.hibernate5.LocalSessionFactoryBeanpublic void setMvccEnabled(boolean mvccEnabled)
protected static java.util.Map<java.lang.String,java.lang.Class<?>> getPreloadClassLoaderClasses()
protected org.hibernate.SessionFactory buildSessionFactory(org.springframework.orm.hibernate5.LocalSessionFactoryBuilder localSessionFactoryBuilder)
throws org.hibernate.HibernateException
buildSessionFactory in class org.springframework.orm.hibernate5.LocalSessionFactoryBeanorg.hibernate.HibernateExceptionprotected java.lang.ClassLoader getConfigurationClassLoader()
protected java.lang.String[] getConfigurationResources()
protected void readResource(org.hibernate.cfg.Configuration configuration,
java.lang.String resource)
throws java.lang.Exception
java.lang.Exceptionprotected void readResource(org.hibernate.cfg.Configuration configuration,
java.net.URL url)
throws java.lang.Exception
java.lang.Exception