-->
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 difference between onFlushDirty and onSave
PostPosted: Thu Jun 28, 2007 6:36 pm 
Beginner
Beginner

Joined: Thu Sep 16, 2004 8:14 pm
Posts: 27
Was wondering what the difference is between onFlushDirty and onSave.
Is onFlushDirty called anytime an object's fields are written to the database (SQL update and insert) and onSave is only called the first time a newly instantiated object is persisted (SQL update only)? And if so, does that mean that onFlushDirty is also called anytime that onSave is called?
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 29, 2007 12:12 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
I thing onFlushDirty called when you are updating any persistent Entity. Not sure

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 29, 2007 1:09 am 
Regular
Regular

Joined: Mon Apr 02, 2007 3:54 am
Posts: 67
Location: Hyderabad
Check this link..... may be halpful
http://www.hibernate.org/138.640.html

Thanks,
Gopal
[please rate, If helpful]


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.