Hi,
I have printed and read the hibernate doc but it is very poor in explanations about HQL (chapter 15).
So I managed to do simple queries but now I have one more complex that i'm not able to translate into HQL.
Here is the SQL query that I want into HQL :
Code:
select person, empServ, serv, emp
from Person person, EmpServ empServ, Serv serv, Emp emp
where person.idEmpServ = empServ.idEmpServ
and empServ.idServ = serv.idServ
and empServ.idEmp = emp.idEmp
And one more question (I'll give one credit for each...;o)):
Will I be able to retrieve an object for each column in my "select" clause.
I mean, I want to be able to retrieve the Person object, the EmpServ Object, the Serv object and the Emp object each time my query is satisfied..
Thanks in advance for help!
gaet'