Package africa.absa.inception.reference
Class ReferenceConfiguration
java.lang.Object
africa.absa.inception.reference.ReferenceConfiguration
@Configuration
@EnableJpaRepositories(entityManagerFactoryRef="referenceEntityManagerFactory",
basePackages="africa.absa.inception.reference")
public class ReferenceConfiguration
extends Object
The ReferenceConfiguration class provides the Spring configuration for the Reference
module.
- Author:
- Marcus Portmann
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceConfiguration(org.springframework.context.ApplicationContext applicationContext) Constructs a new ReferenceConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeanreferenceEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager) Returns the reference entity manager factory bean associated with the application data source.
-
Constructor Details
-
ReferenceConfiguration
public ReferenceConfiguration(org.springframework.context.ApplicationContext applicationContext) Constructs a new ReferenceConfiguration.- Parameters:
applicationContext- the Spring application context
-
-
Method Details
-
referenceEntityManagerFactory
@Bean public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean referenceEntityManagerFactory(@Qualifier("applicationDataSource") DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager) Returns the reference entity manager factory bean associated with the application data source.- Parameters:
dataSource- the application data sourceplatformTransactionManager- the platform transaction manager- Returns:
- the reference entity manager factory bean associated with the application data source
-