ManyToMany
annotation in package klyn.data.mapping

    public annotation ManyToMany(
    mappedBy as String = "",
    fetch as FetchType = FetchType.LAZY,
    cascade as IList<CascadeType> = []
    )

ManyToMany

Declares a many-to-many entity relationship.

Example

    @ManyToMany(
    mappedBy="members",
    cascade=[CascadeType.PERSIST, CascadeType.MERGE]
    )
    public property projects as EntityCollection<Project>