-->
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: Retrieve all rows that have children in some other table
PostPosted: Fri Sep 28, 2007 3:48 pm 
Newbie

Joined: Fri Sep 28, 2007 3:45 pm
Posts: 9
Hi guys,

I am quite new to hibernate and I have a question. Lets suppose we have two mappings. One for a Parent table and one for a Children table (with a 1-M relationship).

I would like to retrieve all parents that have children but in a very optimized way. Is there any way to do so? Thanks in advance.


Top
 Profile  
 
 Post subject: hi thi is kumar phani
PostPosted: Fri Sep 28, 2007 11:21 pm 
Newbie

Joined: Thu Aug 30, 2007 1:05 pm
Posts: 7
Location: Bangalore
first get the all records from parent table...
and then get records correspomding to the parent records

and finally compare the two result lists
then u get vthe final list of u required

_________________
Kumar Phani


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.