You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by C Raj <do...@yahoo.co.in> on 2006/08/09 09:04:06 UTC

Transaction session

If i had a TransactionBegin followed by 3 method calls which internally had some iBATIS statements within them , will all of them be treated as one transaction ? 
   
  For example, i have this code :-
   
  Mapper.Instance().BeginTransaction();
  employee.AddToPDWFTable(employee);
Mapper.Instance().CommitTransaction();
   
  The method 'employee.AddToPDWFTable(employee)' in turn has a statement like 
  Mapper.Instance().Insert("InsertPersonalDetails", employee);
   
  Thanks,
  CR.
  
 

 				
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers