-->
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: Cascade <map> only to values?
PostPosted: Thu Aug 23, 2007 11:19 am 
Newbie

Joined: Fri Mar 30, 2007 5:23 pm
Posts: 16
Location: New York, NY
I'm wondering if it is possible to cascade a <map> association only to the value collection, but not to the key collection. In particular, my application uses <map>s to store many-to-many associations in which the mapping table has extra information; the keys are the objects at the other end of the association, and the values are the mapping rows themselves. It would be nice if Hibernate could remove the mapping rows via a cascade when the association is removed from the map, without removing the elements that the mapping refers to. This would more or less mimic the behavior of simple many-to-many associations that Hibernate handles implicitly.

Does anyone have any tips for how to do this?

Thanks!

Mat Brown


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.