NHibernate - one-many inverse=true
ou may map a bidirectional one-to-many association by mapping a one-to-many association to the same table column(s) as a many-to-one association and declaring the many-valued end inverse="true".
...
...
...
<many-to-one name="Parent" column="parent_id" not-null="true"
(We also need to add the Parent property to the Child class.)
Now that the Child entity is managing the state of the link, we tell the collection not to update the link. We use the inverse attribute.
<set name="Children" inverse="true">
<key column="parent_id" />
<one-to-many class="Child" />
</set>
What's meant by "managing the state of the link"?
Reference:
http://nhibernate.sourceforge.net/nh-docs/en/html/single/reference.html#collections
THanks in advance!

