Hi to everyone,
I have a mapping where order has a list of orderLines that should be ordered, I have a field in the Database that stores sequential order, but it begins with 1. The relevant part of the mapping is
Code:
<list name="OrderLines" table="MA_SaleOrdDetails" lazy="true" >
<key column="SaleOrdId" />
<index column="Line" type="Int16" />
<composite-element class="OrderLine">
<property name="Cancelled" type="Char" column="Cancelled" />
clearly, since nhibernate does not found the element marked with 0, my orderLines list always begins with a null'element.
Is there a way to tell nhibernate that in database the index field begins with 1?
Thanks.
Alk.