-->
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: Batch update row count : Problem BatchingBatcher class?
PostPosted: Mon Nov 22, 2004 8:23 am 
Newbie

Joined: Mon Nov 22, 2004 8:07 am
Posts: 4
Hi

Here my requirements:

Hibernate version: 2.1.4
Mapping documents: Simple class 'User', native id generator, 3 simple string properties.

Code between sessionFactory.openSession() and session.close():
User user = new User();
user.setXyz1("test1");
user.setXyz2("test2");
user.setXyz3("test3");
session.saveOrUpdate(object); // (1)
session.delete(); // (2)

Full stack trace of any exception that occurs:
net.sf.hibernate.HibernateException: Batch update row count: 0
etc etc.

Name and version of the database you are using:
mysql


It looks like a problem with the Hibernate BatchingBatcher. The batcher class doesn


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 22, 2004 8:24 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Please try to give more information, no idea what you mean.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 22, 2004 8:33 am 
Newbie

Joined: Mon Nov 22, 2004 8:07 am
Posts: 4
i forget some params.... (awkward)

User user = new User();
user.setXyz1("test1");
user.setXyz2("test2");
user.setXyz3("test3");

Transaction tx = session.beginTransaction();
session.saveOrUpdate(user); // (1)
session.delete(user); // (2)
tx.commit();

the last expression tx.commit() throws the HibernateException: Batch update row count wrong: 0

Is it possible, that Hibernate expects 2 row updates, but executes 0 updates?

Many thanks,
Andr


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.