-->
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: DYNAMIC-UPDATE
PostPosted: Thu Jan 13, 2005 11:44 am 
Newbie

Joined: Wed Dec 01, 2004 2:21 am
Posts: 12
As i set DYNAMIC-UPDATE=true but again ; query that's generated isn't dynami.

is anybody can help me?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 4:44 pm 
Regular
Regular

Joined: Tue Jun 22, 2004 8:01 pm
Posts: 106
Location: PowderTown, Utah, USA
You need to post more information. There's no way to tell what's going on from just that little bit of information.

Here's what the documentation on the class mapping says (please go read it):
Quote:
dynamic-update (optional, defaults to false): Specifies that UPDATE SQL should be generated at runtime and contain only those columns whose values have changed.


So what you're saying is that you've marked the class as dynamic-update="true" and that it's not dynamically generating an update statement that only includes the delta changes? If so, check to see if Hibernate is performing a query to determine which fields have actually changed - hibernate has to do that to find out which columns need updating.

Also, turn on Hibernate debugging so that you can see exactly what it's doing. If you're going to use Hibernate effectively you really need to get comfortable with its log output.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 4:56 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
dynamic-update does not work with detached objects, unless you specify select-before-update=true


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.