OptionalReference
class OptionalReference<ID : Any, Parent : Entity<ID>, REF : Any>(val reference: Column<REF?>, val factory: EntityClass<ID, Parent>, val references: Map<Column<*>, Column<*>>? = null)
Class representing an optional table relation between two Entity classes, which is responsible for retrieving the parent entity optionally referenced by the child entity. R2DBC counterpart of JDBC's OptionalReference; the property delegate yields an OptionalAccessor for suspending lookups.
Parameters
reference
The nullable reference column defined on the child entity's associated table.
factory
The EntityClass associated with the parent entity optionally referenced by the child entity.
Properties
Functions
Link copied to clipboard
operator fun <SRC : Entity<*>> provideDelegate(thisRef: SRC, property: KProperty<*>): OptionalAccessor<ID, Parent, REF>
Wires up the property delegate by returning an OptionalAccessor bound to the source thisRef entity.