-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: delete a record from a value collection
PostPosted: Thu Sep 27, 2007 11:03 am 
Newbie

Joined: Thu Sep 27, 2007 10:53 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.