-->
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: If the dynamic-update is very good then why default to false
PostPosted: Thu Jan 12, 2006 6:37 am 
Beginner
Beginner

Joined: Fri Jun 17, 2005 7:24 am
Posts: 23
1)If the dynamic-update is very good then why default to false? Will it affect the performance?

2)"all" mean what?
3)"dirty" checking mean update the change column only is it? how about i already close the session and open again. Is it still work?
4)version property only usefull when i enable dynamic-update/insert is it? It is use to prevent lost update only?



Tutorial
---------
If you enable dynamic-update, you will have a choice of optimistic locking strategies:

version check the version/timestamp columns

all check all columns

dirty check the changed columns

none do not use optimistic locking


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 10:15 am 
Newbie

Joined: Fri Dec 03, 2004 8:21 am
Posts: 8
Dynamic update works within the session scope.

i.e., you do openSession(), either load the object or use select-before-update to the session and then set the attributes of the object with the new values. THe proxy recognizes the attributes that are dirty and can generate the sql for only those attributes.

However, this requires careful analysis of the problem at hand. If the session is open for too long, it locks the resources. Also, select-before-update will cause a database call before update.

Hope this helps.

_________________
joshi


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.