-->
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: Eager fetching with Criteria queries and StatelessSession
PostPosted: Mon May 11, 2009 5:55 am 
Newbie

Joined: Mon May 11, 2009 5:29 am
Posts: 1
Location: Dresden, Germany
Hi,

I'm currently evaluating to use Hibernate for stateless, criteria-query only fetching of object-records. I want to specify which associations are to be fetched beforehand instead of using lazy loading. StatelessSession and Criteria fits my needs so far. I'm using criteria.setFetchMode("association", FetchMode.JOIN) to get the associations eagerly-fetched. But I'm wondering: Is a JOIN in all cases the best/correct way to fetch associations? Don't you send huge additional amounts of data over the wire when fetching multiple associations using a join? I'm especially wondering because FetchMode.EAGER / FetchMode.SELECT don't work (they simply mean LAZY which is of no use for a Stateless session) and related bug reports was rejected as "they are not meant to be" (HHH-1211 FetchMode.SELECT not working on criteria queries).

Also, is there a way to buy Hibernate support only - the "Red Hat Developer Subscription" has a hefty price tag if you only want Hibernate support and not the full Red Hat support package...

Greetings,
Ralf
http://www.ralfebert.de/blog/


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.