-->
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: Batch update row count wrong: 0
PostPosted: Tue Oct 18, 2005 11:35 am 
Regular
Regular

Joined: Sun Nov 07, 2004 3:39 pm
Posts: 77
I've Googled as much as I can on this, and am wondering whether anyone can throw any light on what typically causes the following exception, which seems to occur frequently, in varied cases:

net.sf.hibernate.HibernateException: Batch update row count wrong: 0

I just don't get the batch update thing, because one place this error is sporadically thrown is when executing a select (no update is involved). Specifically, it's thrown by the following line:

getHibernateTemplate().find("select p.keywords from testing.om.Product p where p.category.department.shop.id = ? and p.keywords is not null", shopId)

This is in a class which extends Spring's HibernateDaoSupport class.

Given as this seems a common error (for me anyway), I was hoping that somewhere it might be definitively explained.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 18, 2005 12:06 pm 
Regular
Regular

Joined: Sun Nov 07, 2004 3:39 pm
Posts: 77
Forgot to mention: Hibernate 2.1.8, Java 1.4.2, MySQL 4.1.1


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.