-->
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.  [ 1 post ] 
Author Message
 Post subject: Transaction problems
PostPosted: Thu Aug 13, 2009 4:12 pm 
Newbie

Joined: Thu Aug 13, 2009 3:52 pm
Posts: 4
Hi,

I have some problems with transactions.

I have a entity of "Answers", withs has an ID, QuestionID, description and ordernr.

I would like to delete an specific answer, than fetch all remaning answers and update the ordernr of some records.
But when I do this in an transaction, ill get an Unexpected row count error.

I need this in an transaction because when an update of the ordernr failed the delete action should be rolled back.

Does someone know how I can do this.

Thx.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.