i have searched the web and couldnt find a satisfying answer.
I am attempting to write a QueryOver/CreateCriteria query to get a field from 1 table after joining 3 tables.
The SQL query itself is simple, however i wasnt able to convert that into the above format.
The query:
select LOC_ID from
VISITOR_VISIT vv
join VISIT v on vv.VISIT_ID = v.VISIT_ID
join VISITOR_LAY_ENTRY_POINTS vlep on vlep.VLEP_ID = v.VEP_ID
where vv.VIS_ID = PARAMETER
LOC_IDis from. Also you may want to consider reading about projections if you require just one column to be returned. nhibernate.info/doc/nhibernate-reference/…