Hi,
I'm new to Hibernate and I spotted the blog entry on the"
Internationalized data" pattern that Gavin published on the 23rd june and liked what I saw. I've been looking for just such a pattern for some time now.
I've been trying to implement it but I'm a bit confused by the parts that I'm supposed to know and are not covered in the blog. Could someone explain how the Label.getDescription(code, language) method is implemented. I've tried to do this but I thought you needed a Session to do a query for the correct label. It also talks about the cache but I'm not sure how to use this.
...
Code:
return Label.getDescrption( code, User.current().getLanguage());
And I'm assuming this User object isn't a Hibernate object right? I want to use this pattern it in a web application so how do I specify what language I