-->
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: Save succeeding queries within one Transaction
PostPosted: Mon Apr 03, 2006 10:11 am 
Newbie

Joined: Wed Mar 29, 2006 5:09 am
Posts: 4
Hi folks,

I want to execute several update queries, which values originate from an csv-file, within one transaction. Some of the queries might break a constraint of the table, for example trying to insert an value being unique in another row of the table. The problem is, if one of the queries failes, the whole transaction failes (atomicity). Is there a way to let the failing queries fail without the other queries being affected by that?
I want to find a way where I dont need to instantiate a new Session for each of the 2000 queries which shall be executed.

Thank you for help,
Felix


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.