warmUpOptReferences

suspend fun <SID> warmUpOptReferences(references: List<SID>, refColumn: Column<SID?>, orderBy: Array<Pair<Expression<*>, SortOrder>>? = null): List<T>

Returns a list of retrieved Entity instances whose refColumn optionally matches any of the id values in references.

The EntityCache in the current transaction scope will be searched for matching entities, if appropriate for refColumn's column type; otherwise, matching results will be queried from the database.

Set orderBy to specify the order in which entities should be sorted.