Package io.tesler.model.core.config
Class PersistenceJPAConfig
- java.lang.Object
-
- io.tesler.model.core.config.PersistenceJPAConfig
-
@EnableTransactionManagement public class PersistenceJPAConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description PersistenceJPAConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrentUserAware<User>
auditorAware(TransactionService txService, EffectiveUserAware<User> effectiveUserAware)
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
entityManagerFactory(DataSource primaryDS, Properties jpaProperties, org.springframework.orm.jpa.JpaVendorAdapter vendorAdapter)
protected List<String>
getPackagesToScan()
Properties
jpaDebugProperties()
Properties
jpaProperties()
org.springframework.transaction.PlatformTransactionManager
transactionManager(javax.persistence.EntityManagerFactory emf, ITransactionStatus txStatus)
-
-
-
Method Detail
-
entityManagerFactory
@Bean("teslerEntityManagerFactory") public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory(@Qualifier("primaryDS") DataSource primaryDS, @Qualifier("jpaProperties") Properties jpaProperties, @Qualifier("vendorAdapter") org.springframework.orm.jpa.JpaVendorAdapter vendorAdapter)
-
transactionManager
@Bean("teslerTransactionManager") public org.springframework.transaction.PlatformTransactionManager transactionManager(@Qualifier("teslerEntityManagerFactory") javax.persistence.EntityManagerFactory emf, ITransactionStatus txStatus)
-
jpaProperties
@Profile("!Debug") @Bean("jpaProperties") public Properties jpaProperties()
-
jpaDebugProperties
@Profile("Debug") @Bean("jpaProperties") public Properties jpaDebugProperties()
-
auditorAware
@Bean @TransactionScope public CurrentUserAware<User> auditorAware(TransactionService txService, EffectiveUserAware<User> effectiveUserAware)
-
-