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
ParameterDescription
configurationProvider configuration.
mappingsImmutable mapping registry.
Example
manager = EntityManager(configuration, mappings)