Class JPAConfig
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
ConstructorsConstructorDescriptionJPAConfig(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 TypeMethodDescriptionorg.springframework.data.domain.AuditorAware<Long> protected org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapterorg.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeanentityManagerFactory(org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder factoryBuilder, org.springframework.orm.jpa.persistenceunit.PersistenceManagedTypes persistenceManagedTypes) org.springframework.boot.orm.jpa.EntityManagerFactoryBuilderentityManagerFactoryBuilder(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[]getVendorProperties(DataSource dataSource) org.springframework.transaction.support.TransactionTemplatetxTemplate(org.springframework.transaction.PlatformTransactionManager transactionManager) Methods inherited from class org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
customizeVendorProperties, getDataSource, getJtaTransactionManager, getProperties, getVendorProperties, isJta, jpaVendorAdapter, transactionManager
-
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:
entityManagerFactoryin classorg.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
-
getVendorProperties
- Specified by:
getVendorPropertiesin classorg.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
-
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:
entityManagerFactoryBuilderin classorg.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
-
createJpaVendorAdapter
protected org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter createJpaVendorAdapter()- Specified by:
createJpaVendorAdapterin classorg.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration
-
auditorAware
-
txTemplate
@Bean public org.springframework.transaction.support.TransactionTemplate txTemplate(org.springframework.transaction.PlatformTransactionManager transactionManager)
-