klyn.data.EntityModel.discover
method

    public static discover(
    configuration as ProviderConfiguration,
    mappings as MappingRegistry = MappingRegistry.empty
    ) as EntityModel:

Description

Captures every mapped entity visible when a factory is acquired.

The scan only walks reflection metadata already linked into the current application; it performs no classpath search, source compilation or I/O.

Parameters

Parameter | Description
--- | ---
`configuration` | Provider configuration contributing explicit types.
`mappings` | Explicit heterogeneous mapping registry.

Returns

Complete immutable entity model.

Throws

- EntityMappingException when reflected entity metadata is invalid.

Example

    model = EntityModel.discover(configuration, mappings)