@Configuration
@Import(value={ModuleSettingsRegistrar.class,HibernatePackageBuilder.class,org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration.class})
public class HibernateConfiguration
extends Object
HibernateJpaConfiguration,
ModuleSettingsRegistrar| Modifier and Type | Field and Description |
|---|---|
static String |
SESSION_HOLDER |
static String |
TRANSACTION_MANAGER |
| Constructor and Description |
|---|
HibernateConfiguration(AcrossHibernateModule module,
AcrossHibernateModuleSettings settings,
org.springframework.beans.factory.ListableBeanFactory beanFactory) |
| Modifier and Type | Method and Description |
|---|---|
HibernateSessionHolder |
hibernateSessionHolder() |
protected void |
registerClientModuleRepositoryInterceptors(com.foreach.across.core.events.AcrossModuleBeforeBootstrapEvent beforeBootstrapEvent) |
org.springframework.orm.hibernate5.LocalSessionFactoryBean |
sessionFactory(HibernatePackage hibernatePackage) |
UnitOfWorkFactory |
unitOfWork(org.hibernate.SessionFactory sessionFactory) |
public static final String TRANSACTION_MANAGER
public static final String SESSION_HOLDER
@Autowired public HibernateConfiguration(AcrossHibernateModule module, AcrossHibernateModuleSettings settings, org.springframework.beans.factory.ListableBeanFactory beanFactory)
@Bean @Exposed public org.springframework.orm.hibernate5.LocalSessionFactoryBean sessionFactory(HibernatePackage hibernatePackage)
@Bean(name="hibernateSessionHolder") @Exposed public HibernateSessionHolder hibernateSessionHolder()
@ConditionalOnExpression(value="@moduleSettings.createUnitOfWorkFactory") @Bean @Exposed public UnitOfWorkFactory unitOfWork(org.hibernate.SessionFactory sessionFactory)
@EventListener protected void registerClientModuleRepositoryInterceptors(com.foreach.across.core.events.AcrossModuleBeforeBootstrapEvent beforeBootstrapEvent)
Copyright © 2020. All rights reserved.