I have following type of mapping in one of the mapping file, this is part of the mapping file about which i need help
<list name="Nodes" lazy="true" cascade="all-delete-orphan" inverse="true " >
<key column="ParentID" />
<index column="Pos" />
<one-to-many class="MyNewBagHierarchyWork.NodeRelation, MyNewBagHierarchyWork" />
</list>
I am able to get the collection of nodes, suppose there are 3 NodeRelation object in the collection , i want to swap object at position 2 to object a position 1. I have "pos" column in my datatable which represents index starting from 0. So if i swap the nodereatlion objects it should refelected in the database.
I m not able to swap the position of NodeRelation object
|