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: Criteria query based on content (ID) of a collection
PostPosted: Thu Dec 04, 2008 2:47 pm 
Newbie

Joined: Fri Nov 07, 2008 12:40 am
Posts: 1
Hibernate version: 3.2.2

Name and version of the database you are using: Firebird 2.0.3 (Windows)

Not sure the subject properly gets at what I'm trying to do, but it was the best I could come up with.

I have an entity, A, and a different entity, B. There is a bi-directional many-to-many mapping between them, with A in charge of the association.

I need to find all the A entities that have a B entity in their collection, but I need to do it with only B's ID, not an actual B. Any suggestions as to how to go about this?

Thanks,
Jamie


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.