-->
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 returned unexpected row count from update: 0 ac
PostPosted: Mon Dec 19, 2005 12:13 am 
Regular
Regular

Joined: Thu Feb 17, 2005 1:58 am
Posts: 63
I am a bit at loss with the following exception. Any idea someone?

2005-12-18 20:11:49,703 DEBUG [ROOT] (AbstractCollectionPersister.java:1054) - collection was empty
2005-12-18 20:11:49,703 DEBUG [ROOT] (BatchingBatcher.java:55) - Executing batch size: 1
2005-12-18 20:11:49,703 ERROR [ROOT] (BatchingBatcher.java:61) - Exception executing batch:
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
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:230)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:144)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:980)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:353)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 19, 2005 12:21 am 
Regular
Regular

Joined: Thu Feb 17, 2005 1:58 am
Posts: 63
Never mind. I messed up my annotation.

Proper setup:

@JoinColumn(name="xyzOid", insertable=false, updatable=false)


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.