moh wrote:
example file maping
<hibernate-mapping>
<class name="A" table="A">
<id name="id" column="id" type="long" unsaved-value="null">
<generator class="sequence">
<param name="sequence">id</param> <!-- nom de la sequence utilisee -->
</generator>
</id>
<property name="b" column="B"/>
<property name="c" column="C"/>
<set name="listD" inverse="true" lazy="false" cascade="all-delete-orphan" >
<key column="d_code" />
<one-to-many class="D" />
</set>
</class>
the probleme may column d_code is refer to column c and not column id
of a ?
You might want to give this Jira Issue a vote:
http://opensource.atlassian.com/project ... key=HB-806
It's currently rejected, but who knows, if enough people ask for it something might happen. :)