Referrers
What a one-to-many relationship declared with referrersOn gives back: every child entity whose reference column points at this one.
class Director(id: EntityID<Int>) : IntEntity(id) {
val films by Film referrersOn Films.director
companion object : IntEntityClass<Director>(Directors)
}
val titles = director.films.toList().map { it.title }
val count = director.films.count()The property is read-only — a child joins the relation by having its own reference set. Nothing is queried until the returned SizedIterable, which is a Flow, is collected or counted.
Parameters
The reference column defined on the child entity's associated table.
The EntityClass associated with the child entity that references the parent entity.
Whether loaded reference entities should be stored in the EntityCache.
Constructors
Properties
Functions
Modifies this reference to sort entities according to the specified order.
Modifies this reference to sort entities based on multiple columns as specified in order.
Modifies this reference to sort entities by a column specified in expression using ascending order.