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.
|