Class HibernateConfiguration

java.lang.Object
com.foreach.across.modules.hibernate.config.HibernateConfiguration

@Configuration @Import({ModuleSettingsRegistrar.class,HibernatePackageBuilder.class,org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration.class}) public class HibernateConfiguration extends Object
Configures a standard SessionFactory.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • sessionFactory

      @Bean @Exposed public org.springframework.orm.hibernate5.LocalSessionFactoryBean sessionFactory(HibernatePackage hibernatePackage)
    • hibernateSessionHolder

      @Bean(name="hibernateSessionHolder") @Exposed public HibernateSessionHolder hibernateSessionHolder()
    • unitOfWork

      @ConditionalOnExpression("@moduleSettings.createUnitOfWorkFactory") @Bean @Exposed public UnitOfWorkFactory unitOfWork(org.hibernate.SessionFactory sessionFactory)
    • registerClientModuleRepositoryInterceptors

      @EventListener protected void registerClientModuleRepositoryInterceptors(com.foreach.across.core.events.AcrossModuleBeforeBootstrapEvent beforeBootstrapEvent)