public class ConfigurableLocalSessionFactoryBean
extends org.springframework.orm.hibernate5.LocalSessionFactoryBean
LocalSessionFactoryBean
which changes how Hibernate is configured.Constructor and Description |
---|
ConfigurableLocalSessionFactoryBean(@NonNull ConnectionProviderSupplier connectionProviderSupplier) |
ConfigurableLocalSessionFactoryBean(@NonNull Function<DataSource,net.sf.hibernate.connection.ConnectionProvider> connectionProviderSupplier)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected org.hibernate.SessionFactory |
buildSessionFactory(org.springframework.orm.hibernate5.LocalSessionFactoryBuilder config) |
static void |
configureHibernateSystem() |
Iterable<String> |
getCurrentMappingResources() |
static org.hibernate.boot.Metadata |
getMetadata(org.hibernate.cfg.Configuration config)
Deprecated.
since 7.1 Use
HibernateMetadataSource . |
protected void |
prepareConfiguration(org.hibernate.cfg.Configuration config)
This method is called after the Configuration object has been created and
before the SessionFactory has been created.
|
void |
setCurrentMappingResources(Iterable<String> mappingResources) |
void |
setDataSource(DataSource dataSource) |
void |
setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig) |
void |
setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler) |
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
@Deprecated public ConfigurableLocalSessionFactoryBean(@NonNull Function<DataSource,net.sf.hibernate.connection.ConnectionProvider> connectionProviderSupplier)
ConfigurableLocalSessionFactoryBean(ConnectionProviderSupplier)
public ConfigurableLocalSessionFactoryBean(@NonNull ConnectionProviderSupplier connectionProviderSupplier)
public static void configureHibernateSystem()
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
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.LocalSessionFactoryBean
@Deprecated public static org.hibernate.boot.Metadata getMetadata(org.hibernate.cfg.Configuration config)
HibernateMetadataSource
.public void afterPropertiesSet() throws IOException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.orm.hibernate5.LocalSessionFactoryBean
IOException
protected org.hibernate.SessionFactory buildSessionFactory(org.springframework.orm.hibernate5.LocalSessionFactoryBuilder config)
buildSessionFactory
in class org.springframework.orm.hibernate5.LocalSessionFactoryBean
protected void prepareConfiguration(org.hibernate.cfg.Configuration config)
Copyright © 2003–2020 Atlassian. All rights reserved.