This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've a problem with hibernate xml mapping and join. This is my scenario:
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.
Joined: Dec 08, 2010
Anyone? I just don't want to create a Locale POJO for a read only information like the locale code, and the use a one-to-one association. I found that with hibernate annotation @SecondaryTable it's possible to do what I'm asking for, but exists an xml equivalent?