Persistence Join Many Through
annotation class PersistenceJoinManyThrough(val foreignKey: String, val targetForeignKey: String)(source)
Marks a constructor property as a to-many relation (M:N) through a junction table.
foreignKey is the junction column that references this entity and targetForeignKey the junction column that references the target. Both must be fully qualified; the key columns they reference are resolved from the database schema.
@PersistenceJoinManyThrough("MATCH_EXPANSION.MATCH_ID", "MATCH_EXPANSION.EXPANSION_ID")
val expansions: List<ExpansionRef>,Content copied to clipboard