* @return A Set of Roles of this User in the Group
* @exception Exception a generic exception.
*/
public static RoleSet retrieveSet(User user, Group group) throws Exception
{
Criteria criteria = new Criteria();
criteria.add(UserGroupRolePeer.USER_ID,
((Persistent) user).getPrimaryKey());
criteria.add(UserGroupRolePeer.GROUP_ID,
((Persistent) group).getPrimaryKey());
criteria.addJoin(UserGroupRolePeer.ROLE_ID, RolePeer.ROLE_ID);
return retrieveSet(criteria);
}