@Configuration @ConditionalOnClass(value={, , , }) @ConditionalOnBean(value=javax.sql.DataSource.class) public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration implements org.springframework.beans.factory.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(org.springframework.core.env.Environment environment) |
entityManagerFactory, getDataSource, getPackagesToScan, jpaVendorAdapter, setBeanFactory, transactionManager
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.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.