Expert |
|
Joined: Thu Dec 14, 2006 5:57 am Posts: 1185 Location: Zurich, Switzerland
|
You can map it as a plain bag with a many-to-many association
<bag name="Children" ....> <many-to-many class="Group" column=".." table="group_links" </bag>
if you need a reference from the child group to the parent, you need another bag with a many-to-many association to the parent. You can use a private field for that and define a property that returns the single parent that will be in that bag.
The main problem is how to efficiently retrieve a larger part of the tree, because you can't use FetchMode.Join in that special case.
_________________ --Wolfgang
|
|