类 JpaBaseConfiguration

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware
    直接已知子类:
    HibernateJpaAutoConfiguration

    @EnableConfigurationProperties(JpaProperties.class)
    @Import(org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher.Registrar.class)
    public abstract class JpaBaseConfiguration
    extends Object
    implements org.springframework.beans.factory.BeanFactoryAware
    Base Auto-configuration for JPA.
    • 构造器详细资料

    • 方法详细资料

      • entityManagerFactoryBuilder

        @Bean
        @ConditionalOnMissingBean
        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)
      • entityManagerFactory

        @Bean
        @Primary
        @ConditionalOnMissingBean({org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.class,javax.persistence.EntityManagerFactory.class})
        public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory​(org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder factoryBuilder)
      • createJpaVendorAdapter

        protected abstract org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter createJpaVendorAdapter()
      • customizeVendorProperties

        protected void customizeVendorProperties​(Map<String,​Object> vendorProperties)
        Customize vendor properties before they are used. Allows for post processing (for example to configure JTA specific settings).
        参数:
        vendorProperties - the vendor properties to customize
      • getVendorCallback

        protected org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder.EntityManagerFactoryBeanCallback getVendorCallback()
      • getJtaTransactionManager

        protected org.springframework.transaction.jta.JtaTransactionManager getJtaTransactionManager()
        Return the JTA transaction manager.
        返回:
        the transaction manager or null
      • isJta

        protected final boolean isJta()
        Returns if a JTA PlatformTransactionManager is being used.
        返回:
        if a JTA transaction manager is being used
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        指定者:
        setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAware
        抛出:
        org.springframework.beans.BeansException