Hello,
this particular query cannot be written in HQL because of lack of support of the "where" keyword introduced in Hibernate 3.0. See
http://jira.nhibernate.org/browse/NH-514 for details.
I have written an ugly hack as I want to keep my request in HQL: I translate the HQL request to SQL (thanks to Ayende for the NQA code availability) then insert my "on" statement after the "outer join" statement and then execute the query... It is well encapsulated and so not that ugly but still support for the "where" keyword in NH would of course be nicer!
Regards,