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
ParameterDescription
propertyReflected entity property.
columnNameEffective SQL column name.
identityWhether this property is the entity identity.
generatedWhether the provider generates its value.
nullableWhether SQL NULL is accepted.
uniqueWhether a unique constraint is required.
lengthText or binary length constraint.
precisionExact numeric precision.
scaleExact numeric scale.
generationStrategyEffective GenerationType name.
Example
print(mapping.columnName)
print(mapping.length)