-->
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.  [ 2 posts ] 
Author Message
 Post subject: Backing out of a transaction with PreUpdateEventListener
PostPosted: Sat Mar 25, 2006 4:09 pm 
Newbie

Joined: Mon Mar 13, 2006 7:07 pm
Posts: 8
I am doing some object validation in my PreUpdateEventListener. If I decide the object isn't valid and want to back out of the save, I return true.

Whenever I return true I get the following errors:

ERROR [AssertionFailure] an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null identifier

Along with a mile long list of other null identifier errors.

Am I doing this the wrong way? Should I not be returning true?

I have a feeling this has to do with the rest of the object being saved relying on the veto'd object. How do I stop the rest of the object graph from being saved?

Any help would be greatly appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 5:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
better to ask for this in the user forum.

_________________
Max
Don't forget to rate


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