-->
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: Configure subselect fetching strategy where clause?
PostPosted: Wed Feb 27, 2008 3:14 am 
Newbie

Joined: Mon Aug 15, 2005 9:19 pm
Posts: 8
I have a class A and want to load all objects of that class using Hibernate. The class has a few collections which I've mapped.

Code:
Class A {

Collection<B> bs;
Collection<C> cs;
Collection <D> ds;
}


I have tried using join fetching strategy for the collections and that works OK but I thought subselect might perform better as the join fetching results in a large cartesian product.

My problem is subselect fetching is slow because there is a complicated where clause generated for each collection, however I don't need any where clause because I just want to load all objects of the collection classes B, C etc.

Is it possible to give Hibernate some sort of "hint" about the where clause for the collections loading?


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.