EntityModel
class in package klyn.data

    public final class EntityModel:

EntityModel

Immutable snapshot of every entity mapped by an EntityManagerFactory.

Discovery is performed once during factory construction. It combines explicitly configured provider types, explicit mapping descriptors and all `@Entity` types already registered by the compiled application's reflection metadata. Repository execution never repeats this scan.

    model = EntityModel.discover(configuration, mappings)
    assert model.mappedTypes[0] == User.type

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | mappedTypes `mappedTypes as IList<Type>:` | Immutable, deterministically ordered mapped entity types.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | EntityModel `EntityModel(mappedTypes as IList<Type>):` | Creates an immutable entity model from a validated type list.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | discover `discover( configuration as ProviderConfiguration, mappings as MappingRegistry = MappingRegistry.empty ) as EntityModel:` | Captures every mapped entity visible when a factory is acquired.