public abstract class JpaBaseConfiguration extends Object implements BeanFactoryAware, EnvironmentAware
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(LocalContainerEntityManagerFactoryBean entityManagerFactoryBean) |
protected abstract AbstractJpaVendorAdapter |
createJpaVendorAdapter() |
LocalContainerEntityManagerFactoryBean |
entityManagerFactory(JpaVendorAdapter jpaVendorAdapter) |
protected DataSource |
getDataSource() |
protected String[] |
getPackagesToScan() |
JpaVendorAdapter |
jpaVendorAdapter() |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setEnvironment(Environment environment) |
PlatformTransactionManager |
transactionManager() |
public void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAware@Bean @ConditionalOnMissingBean(value=) public PlatformTransactionManager transactionManager()
@Bean @ConditionalOnMissingBean(name="entityManagerFactory") public LocalContainerEntityManagerFactoryBean entityManagerFactory(JpaVendorAdapter jpaVendorAdapter)
@Bean @ConditionalOnMissingBean(value=) public JpaVendorAdapter jpaVendorAdapter()
protected abstract AbstractJpaVendorAdapter createJpaVendorAdapter()
protected DataSource getDataSource()
protected String[] getPackagesToScan()
protected void configure(LocalContainerEntityManagerFactoryBean entityManagerFactoryBean)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionCopyright © 2014 Pivotal Software, Inc.. All rights reserved.