public EntityManager( configuration as ProviderConfiguration, mappings as MappingRegistry = MappingRegistry.empty ):
Creates a persistence context for one provider configuration.
Application code should normally use EntityManagerFactory.createEntityManager() so mapping discovery occurs once and is shared by all managers from the factory.
| Parameter | Description |
|---|---|
configuration | Provider configuration. |
mappings | Immutable mapping registry. |
manager = EntityManager(configuration, mappings)