List of usage examples for org.springframework.boot.orm.jpa EntityManagerFactoryBuilder EntityManagerFactoryBuilder
public EntityManagerFactoryBuilder(JpaVendorAdapter jpaVendorAdapter, Map<String, ?> jpaProperties,
PersistenceUnitManager persistenceUnitManager)
From source file:org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.java
@Bean @ConditionalOnMissingBean//from w w w . ja va2s .co m public EntityManagerFactoryBuilder entityManagerFactoryBuilder(JpaVendorAdapter jpaVendorAdapter, ObjectProvider<PersistenceUnitManager> persistenceUnitManager, ObjectProvider<EntityManagerFactoryBuilderCustomizer> customizers) { EntityManagerFactoryBuilder builder = new EntityManagerFactoryBuilder(jpaVendorAdapter, this.properties.getProperties(), persistenceUnitManager.getIfAvailable()); customizers.orderedStream().forEach((customizer) -> customizer.customize(builder)); return builder; }