I'm developing a web- application using NHibernate. Can you tell me how to write a NHibernate Query for the following SQL query:
select v1.Id from View v1 left join View v2 on v1.SourceView = v2.Id order by v1.Position
It's basically a auto-join but I don't know how to write this in Nhibernate. Lets say the property names are the same as the table column names.