-->
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: Intersection of 2 collection using HQL
PostPosted: Fri Jul 04, 2008 7:44 am 
Newbie

Joined: Fri Jul 04, 2008 7:34 am
Posts: 2
Please anybody i need help desperately..

I have 2 classes say ClassA and ClassB both contains ClassC as set/collection (many-to-many).

Now i need to retrieve intersection set of ClassC in an instance of (ClassA,ClassB)


Top
 Profile  
 
 Post subject: this is what i am trying but it is giving syntax exception
PostPosted: Fri Jul 04, 2008 7:53 am 
Newbie

Joined: Fri Jul 04, 2008 7:34 am
Posts: 2
"select friends from User as user left outer join user.friends as friends where friends in ( select elements(neighbours) form Neighborhood as nbd nbd.users as neighbours where nbd.nid = :nid ) and user.uid = :userUID"


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.