Class HibernateJpaConfiguration

java.lang.Object
com.foreach.across.modules.hibernate.jpa.config.HibernateJpaConfiguration

@Configuration @Import({JpaModuleSettingsRegistrar.class,InterceptorRegistryConfiguration.class,HibernatePackageBuilder.class,org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration.class,DozerConfiguration.class}) public class HibernateJpaConfiguration extends Object
Configures a JPA EntityManagerFactory.
See Also:
  • Field Details

    • TRANSACTION_MANAGER

      public static final String TRANSACTION_MANAGER
      See Also:
    • TRANSACTION_TEMPLATE

      public static final String TRANSACTION_TEMPLATE
      See Also:
    • DEFAULT_ACROSS_BOOTSTRAP_MODE

      public static final org.springframework.data.repository.config.BootstrapMode DEFAULT_ACROSS_BOOTSTRAP_MODE
  • Constructor Details

  • Method Details

    • entityManagerFactory

      @Bean(name="entityManagerFactory") @Exposed public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory()
    • hibernateSessionHolder

      @Bean @Exposed public HibernateSessionHolder hibernateSessionHolder()
    • unitOfWork

      @Bean @Exposed @ConditionalOnExpression("@moduleSettings.createUnitOfWorkFactory") public UnitOfWorkFactory unitOfWork(jakarta.persistence.EntityManagerFactory entityManagerFactory)
    • registerClientModuleRepositoryInterceptors

      @EventListener public void registerClientModuleRepositoryInterceptors(com.foreach.across.core.events.AcrossModuleBeforeBootstrapEvent beforeBootstrapEvent)