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,
InputStream inputStream) |
protected void |
readResource(org.hibernate.cfg.Configuration configuration,
String resource) |
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 IOException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.orm.hibernate5.LocalSessionFactoryBeanIOExceptionpublic void setDataSource(javax.sql.DataSource dataSource)
setDataSource in class org.springframework.orm.hibernate5.LocalSessionFactoryBeanpublic 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.LocalSessionFactoryBeanorg.hibernate.HibernateExceptionprotected ClassLoader getConfigurationClassLoader()
protected String[] getConfigurationResources()
protected void readResource(org.hibernate.cfg.Configuration configuration,
InputStream inputStream)
throws Exception
Exceptionprotected void readResource(org.hibernate.cfg.Configuration configuration,
String resource)
throws Exception
Exception