klyn.data.sql.internal.SQLMappedEntity.SQLMappedEntity
constructor

    public SQLMappedEntity(entityType as Type):

Description

Resolves and validates all effective SQL annotations for one entity.

Parameters

Parameter | Description
--- | ---
`entityType` | Reflected type annotated with `@Entity`.

Throws

- EntityMappingException for missing identities, duplicate columns, invalid column options or unsupported composite identities.

Example

    mapped = SQLMappedEntity(User.type)
    assert mapped.identityType == Int.type