Beginner |
|
Joined: Thu Sep 02, 2004 9:17 am Posts: 21
|
Hi
I have some objects "A" which can contain "B" objects. Each "B" object can be contained by 0 to many "A" objects.
So I have a Collection of B's in my A object, and a link table for associating B's with A's.
At times, given a "B" object I need to find all the "A" objects which contain it. How do I do that? Do I need to go for bi-directional many-to-many mapping (I don't really want B to need knowledge of the A's which contain it)?
Hibernate version:
2.1.6
Thanks for any help.
Peter
|
|