docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/-optional-reference/index.html
class OptionalReference<REF : Any, ID : Any, out Target : Entity<ID>>(val reference: Column<REF?>, val factory: EntityClass<ID, Target>, 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.
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.
Members
Link copied to clipboard
constructor(reference: Column<REF?>, factory: EntityClass<ID, Target>, references: Map<Column<*>, Column<*>>? = null)
Link copied to clipboard
val allReferences: Map<Column<*>, Column<*>>
Link copied to clipboard
val factory: EntityClass<ID, Target>
Link copied to clipboard
Generated by Dokka © 2026 Copyright