EntityManagerFactoryBuilder
constructor(jpaVendorAdapter: JpaVendorAdapter, jpaProperties: Map<String, out Any>, 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
the JPA properties to be passed to the persistence provider
persistenceUnitManager
optional source of persistence unit information (canbe null)
constructor(jpaVendorAdapter: JpaVendorAdapter, jpaProperties: Map<String, out Any>, persistenceUnitManager: PersistenceUnitManager, persistenceUnitRootLocation: URL)
Create a new instance passing in the common pieces that will be shared if multiple EntityManagerFactory instances are created.
Since
1.4.1
Parameters
jpaVendorAdapter
a vendor adapter
jpaProperties
the JPA properties to be passed to the persistence provider
persistenceUnitManager
optional source of persistence unit information (canbe null)
persistenceUnitRootLocation
the persistence unit root location to use as afallback or null