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 ClassLoader |
getConfigurationClassLoader() |
protected String[] |
getConfigurationResources() |
protected static Map<String,Class<?>> |
getPreloadClassLoaderClasses() |
protected void |
readResource(org.hibernate.cfg.Configuration configuration,
String resource) |
protected void |
readResource(org.hibernate.cfg.Configuration configuration,
URL url) |
void |
setConfigurationResources(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, setResourceLoader
public void afterPropertiesSet() throws IOException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.orm.hibernate5.LocalSessionFactoryBean
IOException
public void setConfigurationResources(String[] configurationResources)
public void setDataSource(javax.sql.DataSource dataSource)
setDataSource
in class org.springframework.orm.hibernate5.LocalSessionFactoryBean
public void setMvccEnabled(boolean mvccEnabled)
protected static Map<String,Class<?>> getPreloadClassLoaderClasses()
protected org.hibernate.SessionFactory buildSessionFactory(org.springframework.orm.hibernate5.LocalSessionFactoryBuilder localSessionFactoryBuilder) throws org.hibernate.HibernateException
buildSessionFactory
in class org.springframework.orm.hibernate5.LocalSessionFactoryBean
org.hibernate.HibernateException
protected ClassLoader getConfigurationClassLoader()
protected String[] getConfigurationResources()
protected void readResource(org.hibernate.cfg.Configuration configuration, String resource) throws Exception
Exception
protected void readResource(org.hibernate.cfg.Configuration configuration, URL url) throws Exception
Exception