I have an Object ParamX which stores 2 Lists.
I can fill te list using Methodes in ParamX, when i call create the 2 Lists were stored in separate tables => All OK!
But when i modify the lists (clear and add new entries) of the ParamX-Object and call the update-Methode the new entries don't override the old entries.
The old entries still appear plus the new!
What must i do to remove the previous listentries if they are not any longer in the list when i call update??
Code:
<!DOCTYPE hibernate-mapping SYSTEM
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping package="packagexy....">
<class name="ParamX" table="paramx" >
<id name="id" column="uid" type="long">
<generator class="assigned"/>
</id>
<property name="date">
<column name="date"/>
</property>
<property name="time">
<column name="time"/>
</property>
<property name="user">
<column name="user"/>
</property>
<list name ="listA" table="listA">
<key column="uid" />
<index column="posn" />
<composite-element class="InfoDataA">
<property name="name" type="string" />
<property name="gv" type="string" />
<property name="gvArt" type="string" />
</composite-element>
</list>
<list name ="listB" table="listB">
<key column="uid" />
<index column="posn" />
<composite-element class="InfoDataB">
<property name="name" type="string" />
<property name="gv" type="string" />
</composite-element>
</list>
</class>
</hibernate-mapping>