Dynamic finders with Grails many-to-many relationship
问题 I have 2 domain classes which are mapped by many-to-many relationship. I followed the instruction of Grails documentation, but I still have some problem when processing data on those domains. Here are my 2 domain classes: class User { String name int age String job static hasMany = [groups : Group] static belongsTo = [org : Organization] } class Group { String groupName String code static hasMany = [members : User] } My problems are: 1. The above relationship require one class hold belongsTo