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" ):
Creates one validated property mapping shared by query and schema paths.
| 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. |
print(mapping.columnName) print(mapping.length)