Hi everybody, I have this problem and I couldn't find any post that helps.
Suppose I have an @Entity named Monument which has a description in 7 languages through a internal collection of @Entities List<MonumentDescriptionInLanguage>
What I want is to query for the given Monument by id and to load only one language, let's say French (I know the language id). Ortherwise I have to lazyly or eagerly load all the languages and search inside for French, but this is a kind of resource consuming for high-volumes-high-traffic web applications.
There is a way to to that in Hibernate? Or maybe you can suggest me a different approach to solve the problem?
Thanks, Luca
|