Package africa.absa.inception.config
Class ConfigConfiguration
- java.lang.Object
-
- africa.absa.inception.config.ConfigConfiguration
-
@Configuration @EnableJpaRepositories(entityManagerFactoryRef="configEntityManagerFactory", basePackages="africa.absa.inception.config") public class ConfigConfiguration extends ObjectThe ConfigConfig class provides the Spring configuration for the Config module.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description ConfigConfiguration(org.springframework.context.ApplicationContext applicationContext)Constructs a new ConfigConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeanconfigEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)Returns the config entity manager factory bean associated with the application data source.
-
-
-
Method Detail
-
configEntityManagerFactory
@Bean public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean configEntityManagerFactory(@Qualifier("applicationDataSource") DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)Returns the config entity manager factory bean associated with the application data source.- Parameters:
dataSource- the application data sourceplatformTransactionManager- the platform transaction manager- Returns:
- the config entity manager factory bean associated with the application data source
-
-