java.lang.Object
org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
org.apache.fineract.infrastructure.core.config.jpa.JPAConfig

@Configuration @EnableJpaAuditing @EnableJpaRepositories(basePackages={"org.apache.fineract.**.domain","org.apache.fineract.**.repository","org.apache.fineract.command.persistence"}) @EnableConfigurationProperties(org.springframework.boot.autoconfigure.orm.jpa.JpaProperties.class) @Import(JpaAuditingHandlerRegistrar.class) public class JPAConfig extends org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration

    org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.JpaWebConfiguration
  • Constructor Summary

    Constructors
    Constructor
    Description
    JPAConfig(org.apache.fineract.infrastructure.core.service.database.RoutingDataSource dataSource, org.springframework.boot.autoconfigure.orm.jpa.JpaProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.jta.JtaTransactionManager> jtaTransactionManager, org.apache.fineract.infrastructure.core.service.database.DatabaseTypeResolver databaseTypeResolver, Collection<EntityManagerFactoryCustomizer> customizers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.AuditorAware<Long>
     
    protected org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
     
    org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
    entityManagerFactory(org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder factoryBuilder, org.springframework.orm.jpa.persistenceunit.PersistenceManagedTypes persistenceManagedTypes)
     
    org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder
    entityManagerFactoryBuilder(org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter, org.springframework.beans.factory.ObjectProvider<org.springframework.orm.jpa.persistenceunit.PersistenceUnitManager> persistenceUnitManager, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryBuilderCustomizer> customizers)
     
    protected String[]
     
    protected Map<String,Object>
     
    org.springframework.transaction.support.TransactionTemplate
    txTemplate(org.springframework.transaction.PlatformTransactionManager transactionManager)
     

    Methods inherited from class org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration

    customizeVendorProperties, getDataSource, getJtaTransactionManager, getProperties, getVendorProperties, isJta, jpaVendorAdapter, transactionManager

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JPAConfig

      public JPAConfig(org.apache.fineract.infrastructure.core.service.database.RoutingDataSource dataSource, org.springframework.boot.autoconfigure.orm.jpa.JpaProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.jta.JtaTransactionManager> jtaTransactionManager, org.apache.fineract.infrastructure.core.service.database.DatabaseTypeResolver databaseTypeResolver, Collection<EntityManagerFactoryCustomizer> customizers)
  • Method Details

    • entityManagerFactory

      @Bean @Primary @DependsOn("tenantDatabaseUpgradeService") public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory(org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder factoryBuilder, org.springframework.orm.jpa.persistenceunit.PersistenceManagedTypes persistenceManagedTypes)
      Overrides:
      entityManagerFactory in class org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
    • getVendorProperties

      protected Map<String,Object> getVendorProperties(DataSource dataSource)
      Specified by:
      getVendorProperties in class org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
    • getPackagesToScan

      protected String[] getPackagesToScan()
    • entityManagerFactoryBuilder

      public org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder entityManagerFactoryBuilder(org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter, org.springframework.beans.factory.ObjectProvider<org.springframework.orm.jpa.persistenceunit.PersistenceUnitManager> persistenceUnitManager, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryBuilderCustomizer> customizers)
      Overrides:
      entityManagerFactoryBuilder in class org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
    • createJpaVendorAdapter

      protected org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter createJpaVendorAdapter()
      Specified by:
      createJpaVendorAdapter in class org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
    • auditorAware

      @Bean public org.springframework.data.domain.AuditorAware<Long> auditorAware()
    • txTemplate

      @Bean public org.springframework.transaction.support.TransactionTemplate txTemplate(org.springframework.transaction.PlatformTransactionManager transactionManager)