@Configuration @ConditionalOnClass(value={, , }) @ConditionalOnBean(value=javax.sql.DataSource.class) public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration implements BeanClassLoaderAware
Auto-configuration
for Hibernate JPA.JpaBaseConfiguration.JpaWebConfiguration
Constructor and Description |
---|
HibernateJpaAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(LocalContainerEntityManagerFactoryBean entityManagerFactoryBean) |
protected AbstractJpaVendorAdapter |
createJpaVendorAdapter() |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setEnvironment(Environment environment) |
entityManagerFactory, getDataSource, getPackagesToScan, jpaVendorAdapter, setBeanFactory, transactionManager
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
setEnvironment
in class JpaBaseConfiguration
protected AbstractJpaVendorAdapter createJpaVendorAdapter()
createJpaVendorAdapter
in class JpaBaseConfiguration
protected void configure(LocalContainerEntityManagerFactoryBean entityManagerFactoryBean)
configure
in class JpaBaseConfiguration
Copyright © 2014. All rights reserved.