public class HibernateSessionFactoryBean
extends org.springframework.orm.hibernate5.LocalSessionFactoryBean
implements org.hibernate.integrator.spi.Integrator
Modifier and Type | Field and Description |
---|---|
protected ChainingInterceptor |
chainingInterceptor |
Map<String,org.hibernate.Interceptor> |
interceptors |
protected Set<String> |
mappingResources |
protected Set<String> |
packagesToScan |
Constructor and Description |
---|
HibernateSessionFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Overridden to populate mappings from modules.
|
void |
destroy() |
void |
disintegrate(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory,
org.hibernate.service.spi.SessionFactoryServiceRegistry serviceRegistry) |
org.hibernate.boot.Metadata |
getMetadata() |
Set<String> |
getModuleMappingResources() |
Set<String> |
getModulePackagesWithMappedClasses()
Gets packages with mapped classes from all modules.
|
void |
integrate(org.hibernate.boot.Metadata metadata,
org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory,
org.hibernate.service.spi.SessionFactoryServiceRegistry serviceRegistry) |
void |
setMappingResources(String... mappingResources)
Collect the mapping resources for future use because the mappingResources object is defined
as 'private' instead of 'protected'
|
void |
setPackagesToScan(String... packagesToScan)
Collect packages to scan that are set in core and for tests in modules.
|
buildSessionFactory, getConfiguration, getHibernateProperties, getMetadataSources, getObject, getObjectType, getResourceLoader, isSingleton, setAnnotatedClasses, setAnnotatedPackages, setBeanFactory, setBootstrapExecutor, setCacheableMappingLocations, setCacheRegionFactory, setConfigLocation, setConfigLocations, setCurrentTenantIdentifierResolver, setDataSource, setEntityInterceptor, setEntityTypeFilters, setHibernateIntegrators, setHibernateProperties, setImplicitNamingStrategy, setJtaTransactionManager, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMetadataSources, setMultiTenantConnectionProvider, setPhysicalNamingStrategy, setResourceLoader
protected ChainingInterceptor chainingInterceptor
public void setMappingResources(String... mappingResources)
setMappingResources
in class org.springframework.orm.hibernate5.LocalSessionFactoryBean
public void setPackagesToScan(String... packagesToScan)
It adds to the set instead of overwriting it with each call.
setPackagesToScan
in class org.springframework.orm.hibernate5.LocalSessionFactoryBean
public Set<String> getModulePackagesWithMappedClasses()
public void afterPropertiesSet() throws IOException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.orm.hibernate5.LocalSessionFactoryBean
IOException
public void destroy() throws org.hibernate.HibernateException
destroy
in interface org.springframework.beans.factory.DisposableBean
destroy
in class org.springframework.orm.hibernate5.LocalSessionFactoryBean
org.hibernate.HibernateException
org.springframework.orm.hibernate3.LocalSessionFactoryBean#destroy()
public void integrate(org.hibernate.boot.Metadata metadata, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, org.hibernate.service.spi.SessionFactoryServiceRegistry serviceRegistry)
integrate
in interface org.hibernate.integrator.spi.Integrator
public void disintegrate(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, org.hibernate.service.spi.SessionFactoryServiceRegistry serviceRegistry)
disintegrate
in interface org.hibernate.integrator.spi.Integrator
public org.hibernate.boot.Metadata getMetadata()
Copyright © 2024 OpenMRS Inc.. All rights reserved.