Class ReportingConfiguration


  • @Configuration
    @EnableJpaRepositories(entityManagerFactoryRef="reportingEntityManagerFactory",
                           basePackages="africa.absa.inception.reporting")
    public class ReportingConfiguration
    extends Object
    The ReportingConfiguration class provides the Spring configuration for the Reporting module.
    Author:
    Marcus Portmann
    • Constructor Detail

      • ReportingConfiguration

        public ReportingConfiguration​(org.springframework.context.ApplicationContext applicationContext)
        Constructs a new ReportingConfiguration.
        Parameters:
        applicationContext - the Spring application context
    • Method Detail

      • reportingEntityManagerFactory

        @Bean
        public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean reportingEntityManagerFactory​(@Qualifier("applicationDataSource")
                                                                                                                DataSource dataSource,
                                                                                                                org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
        Returns the reporting entity manager factory bean associated with the application data source.
        Parameters:
        dataSource - the application data source
        platformTransactionManager - the platform transaction manager
        Returns:
        the reporting entity manager factory bean associated with the application data source