Code:
<set name="ParentGroups" table="groups_groups" lazy="false">
<key column="parentGroupId" />
<many-to-many column="childGroupId" class="PersistenceLayer.Entities.User.UserGroup, PersistenceLayer" />
</set>
<set name="ChildGroups" table="groups_groups" lazy="false">
<key column="childGroupId" />
<many-to-many column="parentGroupId" class="PersistenceLayer.Entities.User.UserGroup, PersistenceLayer" />
</set>
this should work fine. Don't declare an inverse end! By doing so, hibernate will not save the childs / parents