-->
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.  [ 1 post ] 
Author Message
 Post subject: Backing out of a transaction with PreUpdateEventListener
PostPosted: Sat Mar 25, 2006 5:03 pm 
Newbie

Joined: Mon Mar 13, 2006 7:07 pm
Posts: 8
Sorry original posted this in the wrong forum.

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

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.