@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,
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 © 2019 Pivotal Software, Inc.. All rights reserved.