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
|
|