-->
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: Tricky issue: order of "OnSave" clals in intercept
PostPosted: Mon May 30, 2005 1:10 am 
Beginner
Beginner

Joined: Sat May 07, 2005 12:01 pm
Posts: 33
This is a tough one: In what order is "OnSave" called in an interceptor? If I modify other objects in "OnSave", is Hibernate smart enough to persist the newly changed objects, or is such an action not allowed? The doc says "The Session may not be invoked from a callback", but says nothing about modifying other objects.

Any ideas?

thanks!

Jen


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 30, 2005 7:02 am 
Newbie

Joined: Mon May 30, 2005 6:58 am
Posts: 3
I think you can change object's state in interceptor.onSave(). Saved object is considered to be dirty, so it will later appear in onFlushDirty anyway.


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.