klyn.data.sql.internal.SQLPropertyMapping.SQLPropertyMapping
constructor

    public SQLPropertyMapping(
    property as Property,
    columnName as String,
    identity as Boolean,
    generated as Boolean,
    nullable as Boolean,
    unique as Boolean = false,
    length as Int = 255,
    precision as Int = 0,
    scale as Int = 0,
    generationStrategy as String = "AUTO"
    ):

Description

Creates one validated property mapping shared by query and schema paths.

Parameters

Parameter | Description
--- | ---
`property` | Reflected entity property.
`columnName` | Effective SQL column name.
`identity` | Whether this property is the entity identity.
`generated` | Whether the provider generates its value.
`nullable` | Whether SQL NULL is accepted.
`unique` | Whether a unique constraint is required.
`length` | Text or binary length constraint.
`precision` | Exact numeric precision.
`scale` | Exact numeric scale.
`generationStrategy` | Effective `GenerationType` name.

Example

    print(mapping.columnName)
    print(mapping.length)