@Configuration @ConditionalOnClass(value={, , , }) @ConditionalOnBean(value=javax.sql.DataSource.class) public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration
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 |
setEnvironment(org.springframework.core.env.Environment environment) |
entityManagerFactory, getDataSource, getPackagesToScan, jpaVendorAdapter, setBeanFactory, transactionManager
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 © 2013. All rights reserved.