public final class SQLMappedEntity:
Type-erased immutable SQL metadata shared by repositories and schema tools.
Parsing mapping annotations in this single class prevents query materialization and DDL generation from interpreting an entity differently. Reflection runs once per factory/repository construction, never per row.
mapped = SQLMappedEntity(User.type) print(mapped.tableName)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | entityTypeentityType as Type |
No summary. |
| public readonly property | identityidentity as SQLPropertyMapping |
No summary. |
| public readonly property | identityTypeidentityType as Type |
No summary. |
| public readonly property | mappingHashmappingHash as String |
No summary. |
| public readonly property | propertiesproperties as ArrayList<SQLPropertyMapping> |
No summary. |
| public readonly property | schemaNameschemaName as String |
No summary. |
| public readonly property | tableNametableName as String |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SQLMappedEntitySQLMappedEntity(entityType as Type): |
Resolves and validates all effective SQL annotations for one entity. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | changedPropertieschangedProperties(
entity as Object,
snapshot as IList<Object>
) as ArrayList<SQLPropertyMapping>: |
Returns mapped properties changed since a snapshot. |
| public | copyState | Copies every persistent property between compatible entity instances. |
| public | generatedIdentityUnset | Tests whether a generated identity still has its language default value. |
| public | identityValue | Reads the mapped identity from one entity. |
| public | materialize | Hydrates one entity from the current SQL row in mapping order. |
| public | newInstancenewInstance() as Object: |
Creates one entity through its public zero-argument constructor. |
| public | propertyForPathpropertyForPath(path as String) as SQLPropertyMapping: |
Returns one mapped property by its Klyn property path. |
| public | snapshot | Captures mapped scalar values for change tracking. |