PersistenceJoinMany

annotation class PersistenceJoinMany(val foreignKey: String)(source)

Marks a constructor property as a to-many relation (1:N) through a foreign key of the target.

foreignKey is the column of the target table that references this entity. A bare column name is resolved against the default table of the target type; the key column it references is resolved from the database schema.

Supports PersistenceManageChildren, but not PersistenceManageLinks: the link is part of the target row itself.

@PersistenceJoinMany("MATCH_PARTICIPANT.MATCH_ID")
val participants: List<MatchParticipant>,

Properties

Link copied to clipboard