Hello All
I have tried searching for this topic without good results.
I have a classical I18N data schema :
table Item(id int)
table Item_Locale(id int, locale char (10) , item_title text, item_description text)
a record in Item-Locale table will look like this :
id | locale | title | description
1 | en-us | "blah " | "blah blah"
Off course I have a class for item with the fields "id (int), title(String), description(String)".
Now - the mapping :
I guess I should do it with the <join> tag, but I also have to inject the locale in some way.. right ?
Is this possible in Hibernate ?
Thank you in advance.
Elad
|