I'd like to know how to effectively run a query such as:
select game from Game game
inner join game.Categories cat
where cat.Name in ('A', 'B')
This gives me games with categories A or B. But I want games that the the A category and the B category. This is to be used in HQL (NHibernate Query Language), but I'd like also to know how to do this on SQL.