Hibernate version:
Hibernate 3.05
Name and version of the database you are using:
Oracle 9i
Hi,
I want to make a join on 2 objects which don't have any link in mapping files or in tables but have a functional connection.
This is my HQL request:
Code:
"select count(*) from SightAccount as account left join Client as cl on account.coccRadi = cl.code where account.coccPcen in ( 1103, 1112, 5293 ) and cl.type in ( 5, 10, 11 ) "
That's my exception:
Code:
org.hibernate.hql.ast.QuerySyntaxError: unexpected token: on near line 1, column 163 [select count(*) from mypackage.SightAccount as account left join Client as cl on account.coccRadi = cl.code where account.coccPcen in ( 1103, 1112, 5293 ) and cl.type in ( 5, 10, 11 ) ]
I searched in Hibernate doc but I didn't find how to write a "left join" request as in SQL. How can I do?
THX.[/code][/b]