-->
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: Query question
PostPosted: Tue Apr 27, 2004 3:53 pm 
Newbie

Joined: Wed Dec 10, 2003 1:29 pm
Posts: 8
Location: Chicago, USA
I have the following relationship: Grandparent-Parent-Child - one to many down the hierarchy as you would expect.

I have some set of Child IDs and I want to get Grandparent objects that contain Parents with those Parents in a Set, and Parents containing Children in a Set, but only those children that I queried on - not all children from the database that are set through the mapping. I have the basic mapping all working - I just want to filter the results on the lowest level but I need to access through the Grandparent/Parent hierarchy. What would be the best HQL or criteria mechanism to do this?

Thanks in advance for any help.


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.