public class ConfigurableLocalSessionFactoryBean
extends org.springframework.orm.hibernate.LocalSessionFactoryBean
A session factory that allows us to manually set the hibernate config path
Constructor and Description |
---|
ConfigurableLocalSessionFactoryBean() |
Modifier and Type | Method and Description |
---|---|
Iterable<String> |
getCurrentMappingResources() |
MappingResources |
getMappingResources()
Deprecated.
since 5.6, use
getCurrentMappingResources() |
net.sf.hibernate.cfg.Configuration |
newConfiguration() |
void |
setCacheManager(com.atlassian.cache.CacheManager cacheManager) |
void |
setCurrentMappingResources(Iterable<String> mappingResources) |
void |
setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig) |
void |
setMappingResources(MappingResources mappingResources)
Deprecated.
since 5.6, use
setCurrentMappingResources(Iterable) |
afterPropertiesSet, createDatabaseSchema, destroy, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, getObject, getObjectType, isSingleton, newSessionFactory, postProcessConfiguration, setConfigLocation, setDataSource, setEntityInterceptor, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setUseTransactionAwareDataSource, updateDatabaseSchema
public net.sf.hibernate.cfg.Configuration newConfiguration() throws net.sf.hibernate.HibernateException
newConfiguration
in class org.springframework.orm.hibernate.LocalSessionFactoryBean
net.sf.hibernate.HibernateException
@Deprecated public MappingResources getMappingResources()
getCurrentMappingResources()
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
public void setMappingResources(MappingResources mappingResources)
setCurrentMappingResources(Iterable)
mappingResources
- The mappingResources to set.public void setCacheManager(com.atlassian.cache.CacheManager cacheManager)
public void setCurrentMappingResources(Iterable<String> mappingResources)
Copyright © 2003–2016 Atlassian. All rights reserved.