-->
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.  [ 4 posts ] 
Author Message
 Post subject: Session.delete object from assoications
PostPosted: Wed Dec 15, 2004 2:09 pm 
Newbie

Joined: Wed Dec 15, 2004 1:58 pm
Posts: 16
Location: Prague, Czech Republic
I delete object usign Session.delete method.
After flush (I have FlushMode NEVER) I get this exception:

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


I catch it and rollback currenct transaction.

Next time I call flush, I get this exception again and again.

How can I rollback object deletion?

Thx,

Lukas


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 15, 2004 2:15 pm 
Beginner
Beginner

Joined: Thu Jul 29, 2004 7:14 pm
Posts: 41
You have to use the template to specify details about your problem; otherwise nobody is going to answer it.


Top
 Profile  
 
 Post subject: Template
PostPosted: Wed Dec 15, 2004 2:18 pm 
Newbie

Joined: Wed Dec 15, 2004 1:58 pm
Posts: 16
Location: Prague, Czech Republic
This is general problem.
I mean informations in "fields" from template would not help to solve this problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 15, 2004 3:17 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
look_as,
hussains is trying to help, so please, as said in the red card:
Code:
Please make sure you understand the rules of this forum before posting!
Your question can not be answered if the information in the form below is incomplete or inaccurate.

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.