ReferenceBinding

data class ReferenceBinding(val referenceTable: BaseTable<*>, val onProperty: KProperty1<*, *>) : ColumnBinding(source)

Bind the column to a reference table, equivalent to a foreign key in relational databases. Entity sequence APIs would automatically left-join all references (recursively) by default.

See also

Constructors

Link copied to clipboard
constructor(referenceTable: BaseTable<*>, onProperty: KProperty1<*, *>)

Properties

Link copied to clipboard

the property used to hold the referenced entity object.

Link copied to clipboard

the reference table.