EntityManagerFactory createEntityManagerFactory(
PersistenceConfiguration configuration
)
Called by Persistence class when an EntityManagerFactory is to be created.
- Parameters:
configuration- the configuration of the persistence unit
- Return:
- EntityManagerFactory for the persistence unit, or null if the provider is not the right provider
- Throws:
- IllegalStateException - if required configuration is missing
- See Also:
- createEntityManagerFactory()
- Since:
- JPA 3.2