I have two POJO classes. One is EmployeeTO and another one is AddressTO.
EmployeeTO has one variable with name EmployeeId and AddressTO also has one variable with name EmployeeId. I want to apply a left join between EmployeeTO's EmployeeId and AddressTO's EmployeeId using HQL.
I used the following query.
from EmployeeTO employeeTO LEFT JOIN AddressTO addressTO ON employeeTO .EmployeeId=addressTO.EmployeeId
But it shows an error:
line 1:139: unexpected token: ON