with

fun <SRCID : Comparable<SRCID>, SRC : Entity<SRCID>, REF : Entity<*>, L : Iterable<SRC>> L.with(vararg relations: KProperty1<out REF, Any?>): L

Eager loads references for all Entity instances in this collection and returns this collection.

See also: Eager Loading

Parameters

relations

The reference fields of the entities, as KPropertys, which should be loaded.

Samples

org.jetbrains.exposed.sql.tests.shared.entities.EntityTests.preloadRelationAtDepth