@Configuration @ConditionalOnClass(value={org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.class,javax.persistence.EntityManager.class}) @Conditional(value=org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration.HibernateEntityManagerCondition.class) public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration
Auto-configuration
for Hibernate JPA.JpaBaseConfiguration.JpaWebConfiguration
Constructor and Description |
---|
HibernateJpaAutoConfiguration(DataSource dataSource,
JpaProperties jpaProperties,
org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.jta.JtaTransactionManager> jtaTransactionManager,
org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.orm.jpa.vendor.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, org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.jta.JtaTransactionManager> jtaTransactionManager, org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
protected org.springframework.orm.jpa.vendor.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.