Class CustomLocalSessionFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class CustomLocalSessionFactoryBean
    extends org.springframework.orm.hibernate3.LocalSessionFactoryBean
    implements org.springframework.context.ApplicationContextAware
    • Field Summary

      • Fields inherited from class org.springframework.orm.hibernate3.LocalSessionFactoryBean

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.hibernate.SessionFactory newSessionFactory​(org.hibernate.cfg.Configuration config)  
      protected void postProcessConfiguration​(org.hibernate.cfg.Configuration config)  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      • Methods inherited from class org.springframework.orm.hibernate3.LocalSessionFactoryBean

        afterPropertiesSet, createDatabaseSchema, destroy, dropDatabaseSchema, executeSchemaScript, executeSchemaStatement, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getHibernateProperties, getObject, getObjectType, getTransactionAwareSessionFactoryProxy, isSingleton, newConfiguration, setCacheableMappingLocations, setCollectionCacheStrategies, setConfigLocation, setConfigLocations, setConfigurationClass, setDataSource, setEntityCacheStrategies, setEntityInterceptor, setEventListeners, setExposeTransactionAwareSessionFactory, setFilterDefinitions, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setTypeDefinitions, setUseTransactionAwareDataSource, updateDatabaseSchema
    • Constructor Detail

      • CustomLocalSessionFactoryBean

        public CustomLocalSessionFactoryBean()
    • Method Detail

      • newSessionFactory

        protected org.hibernate.SessionFactory newSessionFactory​(org.hibernate.cfg.Configuration config)
                                                          throws org.hibernate.HibernateException
        Overrides:
        newSessionFactory in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
        Throws:
        org.hibernate.HibernateException
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • postProcessConfiguration

        protected void postProcessConfiguration​(org.hibernate.cfg.Configuration config)
                                         throws org.hibernate.HibernateException
        Overrides:
        postProcessConfiguration in class org.springframework.orm.hibernate3.LocalSessionFactoryBean
        Throws:
        org.hibernate.HibernateException