@Configuration @ConditionalOnClass(value={org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.class,org.springframework.transaction.annotation.EnableTransactionManagement.class,javax.persistence.EntityManager.class}) public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration
Auto-configuration
for Hibernate JPA.JpaBaseConfiguration.JpaWebConfiguration
Constructor and Description |
---|
HibernateJpaAutoConfiguration(DataSource dataSource,
JpaProperties jpaProperties,
ObjectProvider<JtaTransactionManager> jtaTransactionManager,
ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers) |
Modifier and Type | Method and Description |
---|---|
protected AbstractJpaVendorAdapter |
createJpaVendorAdapter() |
protected void |
customizeVendorProperties(Map<String,Object> vendorProperties)
Customize vendor properties before they are used.
|
protected Map<String,Object> |
getVendorProperties() |
entityManagerFactory, entityManagerFactoryBuilder, getDataSource, getJtaTransactionManager, getPackagesToScan, getProperties, getVendorCallback, isJta, jpaVendorAdapter, setBeanFactory, transactionManager
public HibernateJpaAutoConfiguration(DataSource dataSource, JpaProperties jpaProperties, ObjectProvider<JtaTransactionManager> jtaTransactionManager, ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
protected AbstractJpaVendorAdapter createJpaVendorAdapter()
createJpaVendorAdapter
in class JpaBaseConfiguration
protected Map<String,Object> getVendorProperties()
getVendorProperties
in class JpaBaseConfiguration
protected void customizeVendorProperties(Map<String,Object> vendorProperties)
JpaBaseConfiguration
customizeVendorProperties
in class JpaBaseConfiguration
vendorProperties
- the vendor properties to customizeCopyright © 2017 Pivotal Software, Inc.. All rights reserved.