public abstract class JpaBaseConfiguration extends Object implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.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() |
protected DataSource |
getDataSource() |
protected String[] |
getPackagesToScan() |
JpaVendorAdapter |
jpaVendorAdapter() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
PlatformTransactionManager |
transactionManager() |
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAware@Bean public PlatformTransactionManager transactionManager()
@Bean public LocalContainerEntityManagerFactoryBean entityManagerFactory()
@Bean public JpaVendorAdapter jpaVendorAdapter()
protected abstract AbstractJpaVendorAdapter createJpaVendorAdapter()
protected DataSource getDataSource()
protected String[] getPackagesToScan()
protected void configure(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 © 2013. All rights reserved.