-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Selective load of mapped associations
PostPosted: Wed Jan 12, 2011 7:25 am 
Newbie

Joined: Wed Jan 12, 2011 7:11 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.