Hi All, I have domain objects A, B and C. The relations between objects
is as follows...
A contains a map with B as key and C as the value.
Here's the hibernate mapping (just the map) that associates these
objects..
<hibernate-mapping>
<class name="A" table="A">
<id name="id" column="ID">
<generator class="sequence"/>
</id>
<map name="bc" table="BC">
<key column="ID"/>
<map-key-many-to-many column="b" class="B"/>
<one-to-many class="C"/>
</map>
</class>
</hibernate-mapping>
Here is what I want my query to do...
Given an object B, I would like to get a list of object A's that has object B as a key in the map. Any ideas/sample code would be greatly apreciated.
Thanks,
rr
|