Hi,
i have the following classes: MyClass, YourClass and HisClass
MyClass contains a List of YourClass
and
YourClass contains a List of HisClass
so I have a class that contains a List of Objects, each of which contains a List of more Objects...
so I map:
Code:
<hibernate-mapping>
<class name="MyClass" table="myclass">
...
<property name="someproperty" />
...
<list name="yourclass" table="myclass_yourclasses">
<key column="myclass_id" />
<list-index column="position" />
<composite-element class="YourClass">
...
<property name="someproperty" />
...
<list name="hisclass" table="myclass_yourclasses_hisclasses">
<key column="yourclass_id" />
<list-index column="position" />
<composite-element class="HisClass">
...
</composite-element>
</list>
</composite-element>
</list>
</class>
</hibernate-mapping>
but Hibernate would let me do this mapping.
How would I do that?
Thanx for some hints.
Cheers
Björn