These are examples that I tried:
1) Based on 7.2.3. example from documentation:
Code:
<class name="Person">
<id column="personId" name="id">
<generator class="native"/>
</id>
<list name="addresses" lazy="false">
<key column="personId" not-null="true" />
<list-index base="1" column="addressId" />
<one-to-many class="Address" />
</list>
</class>
<class name="Address">
<id column="addressId" name="id">
<generator class="native"/>
</id>
</class>
2) Based on 7.4.1. example from documentation:
Code:
<class name="Person">
<id column="personId" name="id">
<generator class="native"/>
</id>
<list name="addresses" lazy="false">
<key column="personId" not-null="true" />
<list-index base="1" column="addressId" />
<one-to-many class="Address" />
</list>
</class>
<class name="Address">
<id column="addressId" name="id">
<generator class="native"/>
</id>
<many-to-one column="personId" name="person" not-null="true" insert="false" update="false" />
</class>
Both examples produce exception:
Repeated column in mapping for entity: Address column: addressId (should be mapped with insert="false" update="false")