@EnableTransactionManagement public class PersistenceJPAConfig extends Object
| Constructor and Description |
|---|
PersistenceJPAConfig() |
| Modifier and Type | Method and 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) |
@Bean(value="teslerEntityManagerFactory")
public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory(@Qualifier(value="primaryDS")
DataSource primaryDS,
@Qualifier(value="jpaProperties")
Properties jpaProperties,
@Qualifier(value="vendorAdapter")
org.springframework.orm.jpa.JpaVendorAdapter vendorAdapter)
@Bean(value="teslerTransactionManager")
public org.springframework.transaction.PlatformTransactionManager transactionManager(@Qualifier(value="teslerEntityManagerFactory")
javax.persistence.EntityManagerFactory emf,
ITransactionStatus txStatus)
@Profile(value="!Debug") @Bean(value="jpaProperties") public Properties jpaProperties()
@Profile(value="Debug") @Bean(value="jpaProperties") public Properties jpaDebugProperties()
@Bean @TransactionScope public CurrentUserAware<User> auditorAware(TransactionService txService, EffectiveUserAware<User> effectiveUserAware)
Copyright © 2018–2021 Tesler. All rights reserved.