-->
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: sharing Common transaction between Nhibernate & ADO.NET
PostPosted: Tue Jun 06, 2006 1:31 am 
Beginner
Beginner

Joined: Tue Feb 28, 2006 3:16 am
Posts: 28
I have one scenario where i m using both Nhibernate and ADO.NET Code but it needs to be executed in single transaction.

Here is the scenario

1> I have three tables Table A, Table B, Table C . Insertion of data related to A, B is done using NHibernate.
2> Insertion of data is done using ADO.NET code, tradional using connection , command object.
3> Now if i m using Session.Save() on my NHibernate object(A,B) , it works fine and now i m saving to C , some erros come and i want to rollback all the changes including in A & B.

Can anyone give some pointers to this !!!!!!


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.