Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » (no subject)
(no subject) [message #686908] Sat, 14 May 2011 07:53
Eclipse UserFriend
Originally posted by: <forums-noreply

Hello,

I have an object A referecing B and vice versa
(non-containement, one to many). Now, there is a reference
on both objects (A.Bobjects 0..* type B) and an opposite
(B.Aobject 0..1 type A). I set removeAllReferences = true
to DeleteAction and when B is deleted, A reference is also
removed. However I get an exception:

org.hibernate.ObjectDeletedException: deleted object would
be re-saved by cascade (remove deleted object from
associations):

The object is not resaved, but why is this thrown?
Previous Topic:[CDO] Hibernate Server Example -&gt;Not able to update resources ids of CDOResource with id
Next Topic:Delete bi-directional referenced object
Goto Forum:
  


Current Time: Sat Apr 27 03:08:27 GMT 2024

Powered by FUDForum. Page generated in 0.02779 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top