I have tried both "property-ref" and the "properties" tag but I wasnt able to get the inner join (below) to work either.
HQL
Code:
select emp.addressId
from Employer as emp
inner join
emp.resultingEmployees
where
emp.addressId = 0001
Resulting SQLCode:
select employer.address_id
from employer
inner join
resulting_employees
on employer.employer_id = resulting_employees.address_id
where
employer.address_id = 0001
***It seems that hibernate keeps trying to do the inner join on the primary key for the employer table instead of 'address_id' (bold/italics above) as indicated in the property-ref/properties tag.
I could be doing something wrong but everything seemed to be compiling fine when I tried loading the modified files.
Thanks