ObjectDB ObjectDB

createEntityManagerFactory(emName, map) - JPA PersistenceProvider's method

Method
javax.persistence.spi.PersistenceProvider
EntityManagerFactory createEntityManagerFactory(
  String emName,
  Map map
)

Called by Persistence class when an EntityManagerFactory is to be created.
Parameters:
emName - the name of the persistence unit
map - a Map of properties for use by the persistence provider. These properties may be used to override the values of the corresponding elements in the persistence.xml file or specify values for properties not specified in the persistence.xml (and may be null if no properties are specified).
Returns:
EntityManagerFactory for the persistence unit, or null if the provider is not the right provider
Since:
JPA 1.0