@EnableConfigurationProperties(value=JpaProperties.class) public abstract class JpaBaseConfiguration extends Object implements 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(LocalContainerEntityManagerFactoryBean entityManagerFactoryBean) |
protected abstract AbstractJpaVendorAdapter |
createJpaVendorAdapter() |
LocalContainerEntityManagerFactoryBean |
entityManagerFactory(EntityManagerFactoryBuilder factory) |
EntityManagerFactoryBuilder |
entityManagerFactoryBuilder(JpaVendorAdapter jpaVendorAdapter) |
protected String[] |
getPackagesToScan() |
protected abstract EntityManagerFactoryBuilder.EntityManagerFactoryBeanCallback |
getVendorCallback() |
protected abstract Map<String,String> |
getVendorProperties() |
JpaVendorAdapter |
jpaVendorAdapter() |
void |
setBeanFactory(BeanFactory beanFactory) |
PlatformTransactionManager |
transactionManager() |
@Bean @ConditionalOnMissingBean(value=) public PlatformTransactionManager transactionManager()
@Bean @ConditionalOnMissingBean public JpaVendorAdapter jpaVendorAdapter()
@Bean @ConditionalOnMissingBean public EntityManagerFactoryBuilder entityManagerFactoryBuilder(JpaVendorAdapter jpaVendorAdapter)
@Bean @Primary @ConditionalOnMissingBean public LocalContainerEntityManagerFactoryBean entityManagerFactory(EntityManagerFactoryBuilder factory)
protected abstract AbstractJpaVendorAdapter createJpaVendorAdapter()
protected abstract EntityManagerFactoryBuilder.EntityManagerFactoryBeanCallback getVendorCallback()
protected String[] getPackagesToScan()
protected void configure(LocalContainerEntityManagerFactoryBean entityManagerFactoryBean)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.