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 the {@code persistence.xml} file or specify values for properties not specified in the {@code persistence.xml} (and may be null if no properties are specified).
- Return:
- EntityManagerFactory for the persistence unit, or null if the provider is not the right provider
- See Also:
- createEntityManagerFactory()
- Since:
- JPA 1.0