EntityManagerFactoryBuilder

constructor(jpaVendorAdapter: JpaVendorAdapter, jpaPropertiesFactory: (DataSource) -> 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.

Since

3.4.4

Parameters

jpaVendorAdapter

a vendor adapter

jpaPropertiesFactory

the JPA properties to be passed to the persistenceprovider, based on the configured data source

persistenceUnitManager

optional source of persistence unit information (canbe null)


constructor(jpaVendorAdapter: JpaVendorAdapter, jpaPropertiesFactory: (DataSource) -> 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

3.4.4

Parameters

jpaVendorAdapter

a vendor adapter

jpaPropertiesFactory

the JPA properties to be passed to the persistenceprovider, based on the configured data source

persistenceUnitManager

optional source of persistence unit information (canbe null)

persistenceUnitRootLocation

the persistence unit root location to use as afallback or null


constructor(jpaVendorAdapter: JpaVendorAdapter, jpaProperties: Map<String, out Any>, persistenceUnitManager: PersistenceUnitManager)

Deprecated (for removal)

Since version 3.4.4

Create a new instance passing in the common pieces that will be shared if multiple EntityManagerFactory instances are created.

Deprecated

since 3.4.4 for removal in 4.0.0 in favor of EntityManagerFactoryBuilder

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)

Deprecated (for removal)

Since version 3.4.4

Create a new instance passing in the common pieces that will be shared if multiple EntityManagerFactory instances are created.

Since

1.4.1

Deprecated

since 3.4.4 for removal in 4.0.0 in favor of EntityManagerFactoryBuilder

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