MappingRegistration
interface in package klyn.data

    public interface MappingRegistration:

MappingRegistration

Type-erased registration boundary for heterogeneous entity mappings.

Concrete mappings retain their generic entity and identity types. This interface exists only so one immutable mapping registry can contain mappings for several entity and provider families.

    registration as MappingRegistration = customerSQLMapping
    print(registration.providerName)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | defaultMapping `defaultMapping as Boolean` | Whether this mapping is the default for its entity/provider pair.
public readonly property | entityType `entityType as Type` | Entity type represented by the mapping.
public readonly property | identityType `identityType as Type` | Exact effective entity identity type.
public readonly property | mappingHash `mappingHash as String` | Stable fingerprint used by compiled-plan and persistent-index caches.
public readonly property | name `name as String` | Logical mapping name, unique for one entity/provider pair.
public readonly property | providerName `providerName as String` | Stable provider family name such as sql, memory, json, or xml.