org.springframework.boot.orm.jpa

Class EntityManagerFactoryBuilder



  • public class EntityManagerFactoryBuilder
    extends Object
    Convenient builder for JPA EntityManagerFactory instances. Collects common configuration when constructed and then allows you to create one or more LocalContainerEntityManagerFactoryBean through a fluent builder pattern. The most common options are covered in the builder, but you can always manipulate the product of the builder if you need more control, before returning it from a @Bean definition.
    Since:
    1.3.0
    Author:
    Dave Syer, Phillip Webb
    • Constructor Detail

      • EntityManagerFactoryBuilder

        public EntityManagerFactoryBuilder(org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter,
                                           Map<String,?> jpaProperties,
                                           org.springframework.orm.jpa.persistenceunit.PersistenceUnitManager persistenceUnitManager)
        Create a new instance passing in the common pieces that will be shared if multiple EntityManagerFactory instances are created.
        Parameters:
        jpaVendorAdapter - a vendor adapter
        jpaProperties - JPA properties to be passed to the persistence provider.
        persistenceUnitManager - optional source of persistence unit information (can be null)

Copyright © 2015 Pivotal Software, Inc.. All rights reserved.