Using Left Joins in HQL on 3 Tables
问题 I have three tables A B and C. Now i want to execute this sql query in HQL: select * from A as a left join B as b on a.id = b.id left join C as c on b.type=c.type; Need help in writing equivalent HQL. I tried with this HQL... Query q = session.createQuery( "FROM A as a LEFT JOIN B as b on a.id=b.id LEFT JOIN C as c on b.type=c.type"); This query is throwing exception ..... org.hibernate.hql.ast.QuerySyntaxError: unexpected token: LEFT near line 1, column 23 [FROM com.admin.A as a LEFT JOIN B