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: Probleme hibernate + trigger sous sybase
PostPosted: Mon Nov 20, 2006 10:05 am 
Newbie

Joined: Mon Nov 20, 2006 9:56 am
Posts: 2
Bonjour a tous,

J'ai besoin de votre aide. Je suis novice sur hibernate (version 3.1) et je developpe en ce moment la couche dao d'une application.

Je dois réaliser des insert et update notamment sur les tables d'une base sybase comportant des triggers.

J'ai réalisé mon mapping et un test unitaire et lorsque je le lance j'obtiens l'erreur suivante :

org.hibernate.HibernateException: Batch update returned unexpected row count from update: 1 actual row count: 1 expected: 0
at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:100)
at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
...

quelqu'un aurait il une piste

merci par avance


Top
 Profile  
 
 Post subject: Résolu
PostPosted: Thu Nov 23, 2006 5:35 am 
Newbie

Joined: Mon Nov 20, 2006 9:56 am
Posts: 2
il un bug avec hibernate + sybase ou db2
pour que les triggers fonctionnent il faut mettre la propriete "hibernate.jdbc.batch_size" a 0

Merci


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 12:20 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
L'algorithme a changé en 3.2
On a introduit la notion d'expectation. Si tes données ne sont pas versionnées, ca devrait passer.

_________________
Emmanuel


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.