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 unitmap
- a Map of properties for use by the persistence provider. These properties may be used to override the values of the corresponding elements in thepersistence.xml
file or specify values for properties not specified in thepersistence.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