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

    Constructors
    Constructor
    Description
    ReferenceConfiguration(org.springframework.context.ApplicationContext applicationContext)
    Constructs a new ReferenceConfiguration.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
    referenceEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
    Returns the reference entity manager factory bean associated with the application data source.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 source
      platformTransactionManager - the platform transaction manager
      Returns:
      the reference entity manager factory bean associated with the application data source