Hi,
I noticed that when I call clear on LookupTable.elemente hibernate make a delete for each LookupTableElement it found in the collection. Is this the corect behavior ? According to the reference guide [url]20.5.4[/url] I expected only one delete to be made.
Hibernate version:3.0.5
Code:
<hibernate-mapping>
<class name="com.amazon.test.je.LookupTable" table="LOOKUP" lazy="false">
<id name="id" type="integer" unsaved-value="0" column="ID">
<generator class="native"/>
</id>
<property name="name" type="string" column="NAME"/>
<set name="elemente" lazy="true" inverse="false" >
<key column="LOOKUP_ID" not-null="true"/>
<one-to-many class="com.amazon.test.je.LookupTableElement"/>
</set>
</class>
</hibernate-mapping>
<hibernate-mapping>
<class name="com.amazon.test.je.LookupTableElement" table="LOOKUP_ELEMENT" lazy="false">
<id name="id" type="integer" unsaved-value="0" column="ID">
<generator class="native"/>
</id>
<property name="name" type="string" column="NAME"/>
</class>
</hibernate-mapping>