-->
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: optimistic-lock=dirty being batched incorrectly
PostPosted: Fri Feb 18, 2005 9:22 pm 
Newbie

Joined: Mon Mar 08, 2004 8:57 pm
Posts: 6
When using hibernate.jdbc.batch_versioned_data=false and optimistic-lock=dirty, hibernate will use jdbc batching to perform updates. This means that if the data has been changed in the db, the updates will not take place, but hibernate will throw no exceptions.

It looks like that in the AbstractEntityPersister class method as follows:

public boolean isBatchable() {
return jdbcBatchVersionedData || !isVersioned();
}

should return false in the above case. If hibernate.jdbc.batch_versioned_data = false means that the JDBC driver returns incorrect row counts from executeBatch(), then it should not use the batch process when using the optimistic-lock=dirty.

Thanks!

Hibernate version: 2.1.8

Name and version of the database you are using: Oracle 8.1.7


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 18, 2005 9:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Thanks, fixed in CVS, please test.


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.