Hi,
I have a simple data amodel with orders and orderlines:
 
Code:
 <class name="tuhh.aea.mapping.Order" table="hn_orders">
    <id name="orderID">
      <generator class="native"/>
    </id>
    <property name="datum"/>
    <many-to-one name="client" column="client_id"/>
    <list name="orderlines" inverse="true" cascade="all-delete-orphan">
       <key column="order_id"/>
       <index column="orderline_number"/>
       <one-to-many class="tuhh.aea.mapping.Orderline"/>
    </list>
  </class>
  <class name="tuhh.aea.mapping.Orderline" table="hn_orderlines">
    <id name="orderlineID">
      <generator class="native"/>
    </id>
    <property name="quantity"/>
    <many-to-one name="product" column="product_id" not-null="true"/>
    <many-to-one name="order" column="order_id" not-null="true"/>
  </class>
Everything works fine, except that after an insertion of an order with
orderlines, the column 'orderline_number' does not get a value,
everything else is fine. In my Order class I do not mention
'orderline_number' at all. Is this OK?  Any hints are wellcome. I am
using version 2.0.2/2.0.3.
Thanks a lot
volker turau