@EnableConfigurationProperties(value=JpaProperties.class) @Import(value=org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher.Registrar.class) public abstract class JpaBaseConfiguration extends Object implements org.springframework.beans.factory.BeanFactoryAware
Auto-configuration for JPA.| Modifier and Type | Class and Description |
|---|---|
protected static class |
JpaBaseConfiguration.JpaWebConfiguration |
| Constructor and Description |
|---|
JpaBaseConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactoryBean) |
protected abstract org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter |
createJpaVendorAdapter() |
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean |
entityManagerFactory(EntityManagerFactoryBuilder factory) |
EntityManagerFactoryBuilder |
entityManagerFactoryBuilder(org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter) |
protected String[] |
getPackagesToScan() |
protected EntityManagerFactoryBuilder.EntityManagerFactoryBeanCallback |
getVendorCallback() |
protected abstract Map<String,String> |
getVendorProperties() |
org.springframework.orm.jpa.JpaVendorAdapter |
jpaVendorAdapter() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
org.springframework.transaction.PlatformTransactionManager |
transactionManager() |
@Bean @ConditionalOnMissingBean(value=org.springframework.transaction.PlatformTransactionManager.class) public org.springframework.transaction.PlatformTransactionManager transactionManager()
@Bean @ConditionalOnMissingBean public org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter()
@Bean @ConditionalOnMissingBean public EntityManagerFactoryBuilder entityManagerFactoryBuilder(org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter)
@Bean @Primary @ConditionalOnMissingBean public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory(EntityManagerFactoryBuilder factory)
protected abstract org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter createJpaVendorAdapter()
protected EntityManagerFactoryBuilder.EntityManagerFactoryBeanCallback getVendorCallback()
protected String[] getPackagesToScan()
protected void configure(org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactoryBean)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionCopyright © 2014 Pivotal Software, Inc.. All rights reserved.