-->
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.  [ 2 posts ] 
Author Message
 Post subject: deep join fetch with one-to-many in path
PostPosted: Fri Oct 24, 2003 6:48 am 
Newbie

Joined: Tue Oct 21, 2003 3:41 am
Posts: 5
Location: Belgium
Ls,

A collegae and I were just trying to execute a query that fetched a many relationship and at the same time fetches a many-to-one association on the elements of that first many relationship.

The above sentence is probably totally illegible :-) , so an example :

Code:
select from com.dhl.ncg.ums.model.UldRepair uldRepair
left outer join fetch uldRepair.uldRepairParts
--> left outer join fetch uldRepair.uldRepairParts.currency
where ...


The documentation describes in section "9.3. Associations and joins" :

"Note that, in the current implementation, only one collection role may be fetched in a query"

We're not sure whether this means it can't be done, or not.

Any ideas welcome !

Dimitry D'hondt.

_________________
Dimitry D'hondt
IT Architect - Real Software n.v.
http://www.realsoftware.be

Author of 'Smile' an open-source JaveServer Faces implementation. (http://smile.sourceforge.net)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 24, 2003 4:12 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
from UldRepair uldRepair
left outer join fetch uldRepair.uldRepairParts parts
left outer join fetch parts.currency
where ...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.