-->
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.  [ 3 posts ] 
Author Message
 Post subject: depth of outer join fetch
PostPosted: Fri Nov 21, 2003 7:17 am 
Regular
Regular

Joined: Thu Aug 28, 2003 10:54 am
Posts: 67
I believe that outer join fetches only get go to a depth of one. That is if class A has a set of class B and class B has a set of type C then I can get all of A's set B using an outer join but I won't be able to get all the B's sets C using an outer join. is this correct? Is there a way to get everything in one outer join?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 21, 2003 7:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Ah yes, this is correct in the case of a collection. If you can turn things around and start from the Cs, you will be able to do it.


I think its really a bit harder to implement multi-level outer-join fetching of collections. (In the case of a bag, impossible.)

Max wants this. We may have to look into it at some stage. (Add it to JIRA.)


Top
 Profile  
 
 Post subject: Newbie Query Depth Question
PostPosted: Sun Jan 18, 2004 5:18 pm 
Newbie

Joined: Sun Jan 18, 2004 5:03 pm
Posts: 12
Location: Texas
First post, read the manual a couple of times, built all the examples and feel comfortable using hibernate. The problem is why I try to apply it to my project.

It's a music collection, so there are 3 main objects - song, aritst, and album.

Each object has a collection of the other two.

Before I switched to hibernate, I would manually populate the objects based on a specifed depth.

Now, hibernate does it based on my mappings (many-to-many) but I don't understand how or if it's adjustable or if it's going to eat resources once I fully populate the database and seach for just 1 song.


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

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.