referencedOn
Registers a reference as a field of the child entity class, which returns a parent object of this EntityClass
.
The reference should have been defined by the creation of a column using reference()
on the child table.
Samples
org.jetbrains.exposed.sql.tests.shared.entities.EntityTests.Parentorg.jetbrains.exposed.sql.tests.shared.entities.EntityTests.Childrenorg.jetbrains.exposed.sql.tests.shared.entities.EntityTests.ChildRegisters a reference as a field of the child entity class, which returns a parent object of this EntityClass
.
The reference should have been defined by the creation of a foreign key constraint on the child table, by using foreignKey()
.