Class 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 Detail

      • ReferenceConfiguration

        public ReferenceConfiguration​(org.springframework.context.ApplicationContext applicationContext)
        Constructs a new ReferenceConfiguration.
        Parameters:
        applicationContext - the Spring application context
    • 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 source
        platformTransactionManager - the platform transaction manager
        Returns:
        the reference entity manager factory bean associated with the application data source