org.riotfamily.riot.hibernate.support
Class RiotSessionFactoryBean
java.lang.Object
org.springframework.orm.hibernate3.AbstractSessionFactoryBean
org.springframework.orm.hibernate3.LocalSessionFactoryBean
org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean
org.riotfamily.riot.hibernate.support.RiotSessionFactoryBean
- All Implemented Interfaces:
- BeanClassLoaderAware, DisposableBean, FactoryBean, InitializingBean, ResourceLoaderAware, PersistenceExceptionTranslator
public class RiotSessionFactoryBean
- extends AnnotationSessionFactoryBean
Methods inherited from class org.springframework.orm.hibernate3.LocalSessionFactoryBean |
buildSessionFactory, createDatabaseSchema, destroy, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeCacheProvider, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, newConfiguration, newSessionFactory, setBeanClassLoader, setCacheableMappingLocations, setCacheProvider, setCollectionCacheStrategies, setConfigLocation, setConfigLocations, setEntityCacheStrategies, setEntityInterceptor, setEventListeners, setFilterDefinitions, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setTypeDefinitions, updateDatabaseSchema |
Methods inherited from class org.springframework.orm.hibernate3.AbstractSessionFactoryBean |
afterPropertiesSet, beforeSessionFactoryDestruction, convertHibernateAccessException, getDataSource, getObject, getObjectType, getSessionFactory, isExposeTransactionAwareSessionFactory, isSingleton, isUseTransactionAwareDataSource, setDataSource, setExposeTransactionAwareSessionFactory, setJdbcExceptionTranslator, setUseTransactionAwareDataSource, translateExceptionIfPossible, wrapSessionFactoryIfNecessary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RiotSessionFactoryBean
public RiotSessionFactoryBean()
afterSessionFactoryCreation
protected void afterSessionFactoryCreation()
throws Exception
- Overrides:
afterSessionFactoryCreation
in class LocalSessionFactoryBean
- Throws:
Exception
setValidate
public void setValidate(boolean validate)
- Default is
false
because of:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3532
validateSchema
public void validateSchema()
throws DataAccessException
- Throws:
DataAccessException