If I have users with different roles in the set, how can I query user
object to get a list of users with a particular role?

Role role = new Role("team lead");
getHibernateTemplate().find("from User u where u.roles = ? ", role);

Thanks.

QD
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to