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(org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactoryBean) |
protected abstract org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter |
createJpaVendorAdapter() |
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean |
entityManagerFactory(org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter) |
protected DataSource |
getDataSource() |
protected String[] |
getPackagesToScan() |
org.springframework.orm.jpa.JpaVendorAdapter |
jpaVendorAdapter() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
org.springframework.transaction.PlatformTransactionManager |
transactionManager() |
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAware@Bean @ConditionalOnMissingBean(value=org.springframework.transaction.PlatformTransactionManager.class) public org.springframework.transaction.PlatformTransactionManager transactionManager()
@Bean @ConditionalOnMissingBean(name="entityManagerFactory") public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory(org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter)
@Bean @ConditionalOnMissingBean(value=org.springframework.orm.jpa.JpaVendorAdapter.class) public org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter()
protected abstract org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter createJpaVendorAdapter()
protected DataSource getDataSource()
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. All rights reserved.