@Configuration @EnableConfigurationProperties(value=JpaProperties.class) @Import(value=org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher.Registrar.class) public abstract class JpaBaseConfiguration extends ObjectSE implements BeanFactoryAware
Auto-configuration
。修飾子と型 | クラスと説明 |
---|---|
protected static class | JpaBaseConfiguration.JpaWebConfiguration |
修飾子 | コンストラクターと説明 |
---|---|
protected | JpaBaseConfiguration(DataSourceSE dataSource, JpaProperties properties, ObjectProvider<JtaTransactionManager> jtaTransactionManager, ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected JpaBaseConfiguration(DataSourceSE dataSource, JpaProperties properties, ObjectProvider<JtaTransactionManager> jtaTransactionManager, ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
@Bean @ConditionalOnMissingBean public PlatformTransactionManager transactionManager()
@Bean @ConditionalOnMissingBean public JpaVendorAdapter jpaVendorAdapter()
@Bean @ConditionalOnMissingBean public EntityManagerFactoryBuilder entityManagerFactoryBuilder(JpaVendorAdapter jpaVendorAdapter, ObjectProvider<PersistenceUnitManager> persistenceUnitManager, ObjectProvider<EntityManagerFactoryBuilderCustomizer> customizers)
@Bean @Primary @ConditionalOnMissingBean(value={org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.class,javax.persistence.EntityManagerFactory.classEE}) public LocalContainerEntityManagerFactoryBean entityManagerFactory(EntityManagerFactoryBuilder factoryBuilder)
protected abstract AbstractJpaVendorAdapter createJpaVendorAdapter()
protected void customizeVendorProperties(MapSE<StringSE,ObjectSE> vendorProperties)
vendorProperties
- カスタマイズするベンダープロパティ protected StringSE[] getPackagesToScan()
protected JtaTransactionManager getJtaTransactionManager()
null
protected final boolean isJta()
PlatformTransactionManager
が使用されているかどうかを返します。protected final JpaProperties getProperties()
JpaProperties
を返します。protected final DataSourceSE getDataSource()
DataSource
SE を返します。public void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactoryAware
の setBeanFactory
BeansException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.