Trying to do a bit more complex query, and thought that HQL would be better for the job. Using nHibernate.
SELECT * FROM [Group] g
INNER JOIN [User2Group] ug on g.Id = ug.GroupId
INNER JOIN [User] u ON u.Id = ug.UserId
INNER JOIN Activity a on g.ActivityId = a.Id
WHERE u.Id = ? AND a.Lineage LIKE '?%'
I guess I could also just use the SQL as well (?), but not sure really how to load up my objects that way.