Joined: Mon Jan 23, 2006 11:44 pm Posts: 15 Location: New Jersey, US
|
Hi,
I am so confused on which sorted collection to use. A list seems suit with what I need so I use the following mapping:
<list name="Items" table="Items" inverse="true" lazy="true" cascade="all-delete-orphan">
<key column="BillId"></key>
<index column="Sequence" type="Int32"></index>
<one-to-many class="Item"/>
</list>
When I test it, the Sequence column in Items table is not updated at all. In NHibernate document all <list> samples use component or value type as collection elements. Can I use it with another mapped entity as the element?
Thanks,
Hongze
|
|