Find Object in Many-to-Many Szanario - Grails

Posted by Oliver on Stack Overflow See other posts from Stack Overflow or by Oliver
Published on 2010-05-01T19:49:58Z Indexed on 2010/05/01 19:57 UTC
Read the original article Hit count: 335

Filed under:
|

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 many tables.

can anyone help me? and excuse my no propper english^^

© Stack Overflow or respective owner

Related posts about grails

Related posts about many-to-many