Reference

class Reference<REF : Comparable<REF>, ID : Comparable<ID>, 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.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard