So I have been struggle with this one for a while,
I have a collection of composite element modeled as follows,
<class name="ComponentFinding" table="component_finding">
...
<set name="findingStamps" table="finding_stamp" order-by="stamp_date">
<key column="component_finding_id" />
<composite-element class="FindingStamp">
<property name="stampDate" type="timestamp" column="stamp_date" />
<property name="stampValue" type="string" column="stamp_value" /> </composite-element>
</set>
</class>
according to the hibernate document, deleting a record from the findingStamps collection will result in the deletion of the same record in database. But I did not see that behavior. The only way I were able to do it is to create a complete new collection and copy over the records that I do want. Then assign the new collection to the enclosing object. What am I missing here?
_________________ - Mike
|