klyn.data.EntityManager.EntityManager
constructor

    public EntityManager(
    configuration as ProviderConfiguration,
    mappings as MappingRegistry = MappingRegistry.empty
    ):

Description

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.

Parameters

Parameter | Description
--- | ---
`configuration` | Provider configuration.
`mappings` | Immutable mapping registry.

Example

    manager = EntityManager(configuration, mappings)