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.
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionHibernateConfiguration(AcrossHibernateModule module, AcrossHibernateModuleSettings settings, org.springframework.beans.factory.ListableBeanFactory beanFactory)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidregisterClientModuleRepositoryInterceptors(com.foreach.across.core.events.AcrossModuleBeforeBootstrapEvent beforeBootstrapEvent) org.springframework.orm.hibernate5.LocalSessionFactoryBeansessionFactory(HibernatePackage hibernatePackage) unitOfWork(org.hibernate.SessionFactory sessionFactory)  
- 
Field Details
- 
TRANSACTION_MANAGER
- See Also:
 
 - 
SESSION_HOLDER
- See Also:
 
 
 - 
 - 
Constructor Details
- 
HibernateConfiguration
@Autowired public HibernateConfiguration(AcrossHibernateModule module, AcrossHibernateModuleSettings settings, org.springframework.beans.factory.ListableBeanFactory beanFactory)  
 - 
 - 
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)  
 -