-->
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.  [ 3 posts ] 
Author Message
 Post subject: Interceptor onUpdate?
PostPosted: Mon Apr 30, 2007 4:33 pm 
Newbie

Joined: Wed Mar 28, 2007 2:51 pm
Posts: 16
Hi again,
I notice there is no onUpdate in the interceptor interface. I need to review an objects state before it is saved OR updated. Does this mean I can only intercept saves? I was forced to use session.update(...) on existing objects, but what is the trick to intercept those events?

thank you.
Darren


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 30, 2007 11:43 pm 
Senior
Senior

Joined: Sat Aug 19, 2006 6:31 pm
Posts: 139
Hi,

You can consider using event listeners instead.

http://www.hibernate.org/hib_docs/v3/re ... ate-events

_________________
Don't forget to rate the reply if it helps..:)

Budyanto


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 01, 2007 1:14 pm 
Newbie

Joined: Wed Mar 28, 2007 2:51 pm
Posts: 16
I will try this. Thank you!

But I thought it strange interceptors have save,load,delete but no update callback...

Darren


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