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 ObjectThe ReferenceConfiguration class provides the Spring configuration for the Reference module.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description ReferenceConfiguration(org.springframework.context.ApplicationContext applicationContext)Constructs a new ReferenceConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeanreferenceEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)Returns the reference entity manager factory bean associated with the application data source.
-
-
-
Method Detail
-
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
-
-