com.atlassian.confluence.impl.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean instead.@Deprecated public class ConfigurableLocalSessionFactoryBean extends org.springframework.orm.hibernate5.LocalSessionFactoryBean
LocalSessionFactoryBean which changes how Hibernate is configured.| Constructor and Description |
|---|
ConfigurableLocalSessionFactoryBean(@NonNull Function<DataSource,net.sf.hibernate.connection.ConnectionProvider> connectionProviderSupplier)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Deprecated.
|
protected org.hibernate.SessionFactory |
buildSessionFactory(org.springframework.orm.hibernate5.LocalSessionFactoryBuilder config)
Deprecated.
|
static void |
configureHibernateSystem()
Deprecated.
|
Iterable<String> |
getCurrentMappingResources()
Deprecated.
|
MappingResources |
getMappingResources()
Deprecated.
since 5.6, use
getCurrentMappingResources() |
static org.hibernate.boot.Metadata |
getMetadata(org.hibernate.cfg.Configuration config)
Deprecated.
Get the Metadata object that defines the database schema.
|
protected void |
prepareConfiguration(org.hibernate.cfg.Configuration config)
Deprecated.
This method is called after the Configuration object has been created and
before the SessionFactory has been created.
|
void |
setCurrentMappingResources(Iterable<String> mappingResources)
Deprecated.
|
void |
setDataSource(DataSource dataSource)
Deprecated.
|
void |
setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
Deprecated.
|
void |
setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
Deprecated.
|
void |
setMappingResources(MappingResources mappingResources)
Deprecated.
since 5.6, use
setCurrentMappingResources(Iterable) |
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 ConfigurableLocalSessionFactoryBean(@NonNull Function<DataSource,net.sf.hibernate.connection.ConnectionProvider> connectionProviderSupplier)
public static void configureHibernateSystem()
@Deprecated public MappingResources getMappingResources()
getCurrentMappingResources()public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
@Deprecated public void setMappingResources(MappingResources mappingResources)
setCurrentMappingResources(Iterable)mappingResources - The mappingResources to set.public void setCurrentMappingResources(Iterable<String> mappingResources)
public void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
public void setDataSource(DataSource dataSource)
setDataSource in class org.springframework.orm.hibernate5.LocalSessionFactoryBeanpublic static org.hibernate.boot.Metadata getMetadata(org.hibernate.cfg.Configuration config)
public void afterPropertiesSet()
throws IOException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.orm.hibernate5.LocalSessionFactoryBeanIOExceptionprotected org.hibernate.SessionFactory buildSessionFactory(org.springframework.orm.hibernate5.LocalSessionFactoryBuilder config)
buildSessionFactory in class org.springframework.orm.hibernate5.LocalSessionFactoryBeanprotected void prepareConfiguration(org.hibernate.cfg.Configuration config)
Copyright © 2003–2021 Atlassian. All rights reserved.