I have 3 tables named Employee, Office, Department. Employee has 4 fields such as id, Emp_Name, Salary,JoiningDate. Office has 3 fields such as id, Emp_id, Location Department has id, Off_id, Dept_Name,Emp_id
SQl Query,
SELECT
DISTINCT TOP 10 this.id as Emp_id, Emp_Name,Salary,Location,Dept_name
FROM
Employee this
INNER JOIN
Office O ON this_id = O.id
INNER JOIN
Department d on d.Emp_id = this.id
ORDER BY this.id
Could you please help me to get the equivalent Hibernate Query Language using Session.CreateCriteria (Employee.class,"Employee") That could be very helpful.