-->
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: automatic dirty checkig
PostPosted: Mon Jun 18, 2007 5:57 am 
Newbie

Joined: Wed Jun 13, 2007 5:55 am
Posts: 3
is it a good practice to make use of

automatic dirty checkig concept in application programming?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 18, 2007 7:04 am 
Regular
Regular

Joined: Mon Mar 26, 2007 12:38 am
Posts: 119
Hi,
This is my view.
On the brighter side ( using Automatic Dirty Checking )
i) We rely on somebody else to persist the changes made by us without really being concerned with,
a) when to do it ?
b) how to do it ? ( selectively update columns etc. )
ii) The Less we Code, Lesser are the Bugs introduced. So, its handy to use a tried and tested utility.
iii) Automatic Dirty Checking units ( like the one in Hibernate , findDirty() ) are flexible to an extent that we can provide custom routines to determine if objects are dirty.

On the Darker side,
i) We have a dependency on this unit. Yes a dependency. ( If not, my application would handle this logic )
ii) At times this feature can be irritating. ( we are forced to remove the object to detached state, if we intend to modify the object with no intentions of persisting it. But, again this is not a good practice.


------------------------------------------
Rate the reply if you find it helpful


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.