-->
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: Thu Mar 04, 2010 1:13 pm 
Newbie

Joined: Sun Nov 15, 2009 8:22 pm
Posts: 19
Ok,
Class A can have many Class B.
Class B can have many Class A

Class A {
List<B> bs;
}

Class B {
List<A> as;
}

now I want to select some A classes that have a set of B classes in their list of B classes.
I.e. give me all A that have the B's with b.id=3, b.id=4, b.id=5 (all of them, not just one or two)
In Criteria form.

Could somebody 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.