InnerTableLink
What a many-to-many relationship declared with via gives back: the entities linked to this one through an intermediate table.
class Film(id: EntityID<Int>) : IntEntity(id) {
var actors by Actor via FilmActors
companion object : IntEntityClass<Film>(Films)
}
film.actors = SizedCollection(actor1, actor2) // replaces the rows in FilmActors
val cast = film.actors.toList()Unlike the other relationships, this property is a var: assigning a collection rewrites the links.
Parameters
The intermediate table containing reference columns to both child and parent entities.
The IdTable associated with the source child entity.
The EntityClass for the target parent entity.
The intermediate table's reference column for the child entity class. If left null, this will be inferred from the provided intermediate table columns.
The intermediate table's reference column for the parent entity class. If left null, this will be inferred from the provided intermediate table columns.
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.