-->
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.  [ 3 posts ] 
Author Message
 Post subject: net.sf.hibernate.ObjectDeletedException
PostPosted: Wed Apr 14, 2004 4:03 pm 
Regular
Regular

Joined: Sat Oct 18, 2003 11:53 am
Posts: 55
I am getting this exception while trying to delete an object with a lot of relationships. I cannot find any description of this exception, in particular how to avoid it happening.

Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 14, 2004 4:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Typically this occurs as a result of trying to either load or lock an entity which has been marked for deletion, in the same session in which it was marked for deletion. http://www.hibernate.org/hib_docs/api/net/sf/hibernate/ObjectDeletedException.html

As you have provided no details I can't be any more specific.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 14, 2004 5:15 pm 
Regular
Regular

Joined: Sat Oct 18, 2003 11:53 am
Posts: 55
Steve,

Your right, I should have posted more details. Here is the exact error I am getting and it doesn't seem to Jive with the JavaDoc:

Code:
net.sf.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): 10, of class: com.notiva.cbo.buyer.data.match.MatchDetailImpl


If I set the cascase="none" on that it moves past and fails somewhere else. I am trying to work through it, but our mapping files are rather large and it doesn't like the man-to-many's...

Matt


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

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.