Hi all,
I've a problem with hibernate xml mapping and join. This is my scenario:
Table Resource
id, Pk
code
message
id_locale
Table Locale
id, Pk
code
description
On the table Resource I've a fk on id_locale referencing the column id of the table Locale.
Java Side, I've created a pojo ResourceBean with getter/setter for id, code, message, localeCode and this is my mapping
When i try to retrieve a resource, the join fails in finding the column ID_LOCALE
There's something wrong with the on clause but I don't know how to correct it in the mapping.
Thanks