public class CommunoteSessionFactoryBean
extends org.springframework.orm.hibernate3.LocalSessionFactoryBean
DatabaseConfiguration
Constructor and Description |
---|
CommunoteSessionFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected void |
postProcessConfiguration(org.hibernate.cfg.Configuration config) |
void |
setDatabaseConfigurationFactory(DatabaseConfigurationFactory factory)
Set the database configuration factory that should be used to get a
DatabaseConfiguration for configuring Hibernate's session factory. |
afterSessionFactoryCreation, buildSessionFactory, createDatabaseSchema, destroy, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeCacheProvider, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, newConfiguration, newSessionFactory, postProcessMappings, setBeanClassLoader, setCacheableMappingLocations, setCacheProvider, setCacheRegionFactory, setCollectionCacheStrategies, setConfigLocation, setConfigLocations, setConfigurationClass, setEntityCacheStrategies, setEntityInterceptor, setEventListeners, setFilterDefinitions, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setTypeDefinitions, updateDatabaseSchema, validateDatabaseSchema
afterPropertiesSet, beforeSessionFactoryDestruction, getDataSource, getObject, getObjectType, getSessionFactory, isExposeTransactionAwareSessionFactory, isSingleton, isUseTransactionAwareDataSource, setDataSource, setExposeTransactionAwareSessionFactory, setUseTransactionAwareDataSource, wrapSessionFactoryIfNecessary
protected void postProcessConfiguration(org.hibernate.cfg.Configuration config) throws org.hibernate.HibernateException
postProcessConfiguration
in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
org.hibernate.HibernateException
public void setDatabaseConfigurationFactory(DatabaseConfigurationFactory factory)
DatabaseConfiguration
for configuring Hibernate's session factory. By default an
instance of HibernateDatabaseConfigurationFactory
will be used.factory
- the factory to use. Must not be null.Copyright © 2019 Communote team. All rights reserved.