English | 简体中文

api-docs / org.ktorm.schema / ReferenceBinding / <init>

<init>

ReferenceBinding(
    referenceTable: BaseTable<*>,
    onProperty: KProperty1<*, *>)

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.