@Configuration(value="jpaEventsConfiguration") @EnableConfigurationProperties(value=CasConfigurationProperties.class) @EnableTransactionManagement(proxyTargetClass=true) public class JpaEventsConfiguration extends java.lang.Object
JpaEventsConfiguration
, defines certain beans via configuration
while delegating some to Spring namespaces inside the context config file.Constructor and Description |
---|
JpaEventsConfiguration() |
Modifier and Type | Method and Description |
---|---|
CasEventRepository |
casEventRepository() |
javax.sql.DataSource |
dataSourceEvent() |
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean |
eventsEntityManagerFactory() |
java.lang.String[] |
jpaEventPackagesToScan() |
org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter |
jpaEventVendorAdapter() |
org.springframework.transaction.PlatformTransactionManager |
transactionManagerEvents(javax.persistence.EntityManagerFactory emf) |
@RefreshScope @Bean public org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter jpaEventVendorAdapter()
@RefreshScope @Bean public javax.sql.DataSource dataSourceEvent()
public java.lang.String[] jpaEventPackagesToScan()
@Lazy @Bean public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean eventsEntityManagerFactory()
@Autowired @Bean public org.springframework.transaction.PlatformTransactionManager transactionManagerEvents(@Qualifier(value="eventsEntityManagerFactory") javax.persistence.EntityManagerFactory emf)
@Bean public CasEventRepository casEventRepository()