Back to Exposed

Reference

docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/-reference/index.html

1.2.02.6 KB
Original Source

Reference

class Reference<REF : Any, ID : Any, out Target : Entity<ID>>(val reference: Column<REF>, val factory: EntityClass<ID, Target>, references: Map<Column<*>, Column<*>>? = null)

Class representing a table relation between two Entity classes, which is responsible for retrieving the parent entity referenced by the child entity.

Parameters

reference

The reference column defined on the child entity's associated table.

factory

The EntityClass associated with the parent entity referenced by the child entity.

Members

Constructors

Reference

Link copied to clipboard

constructor(reference: Column<REF>, factory: EntityClass<ID, Target>, references: Map<Column<*>, Column<*>>? = null)

Properties

allReferences

Link copied to clipboard

val allReferences: Map<Column<*>, Column<*>>

factory

Link copied to clipboard

val factory: EntityClass<ID, Target>

reference

Link copied to clipboard

val reference: Column<REF>

Generated by Dokka © 2026 Copyright