public final class 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
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | mappedTypes | Immutable, deterministically ordered mapped entity types. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | EntityModelEntityModel(mappedTypes as IList<Type>): |
Creates an immutable entity model from a validated type list. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | discoverdiscover(
configuration as ProviderConfiguration,
mappings as MappingRegistry = MappingRegistry.empty
) as EntityModel: |
Captures every mapped entity visible when a factory is acquired. |