Find Object in Many-to-Many Szanario - Grails
- by Oliver
Hello,
i got this situation:
- class user with hasMany Roles and belongsTo Roles
- class Role with hasMans User
how can i get the roles belongs to a user, object user is given,
how can i get objects in a many-to-many szanario?
findByX doesn't work, it's affect just one table, but i need a "find" or something else to find Object overall / over…