Mark, thank you a lot for answer.
I want to do something like
try{
   sqlMap.startTransaction() ;
   sqlMap.insertHeader( headerbean );
   sqlMap.insertItems( ListOfItems) ;
   sqlMapcommitTransaction() ;
} finally {
   sqlMap.endTransaction() ;
}





2007/5/17, Mark Volkmann <[EMAIL PROTECTED]>:

On May 17, 2007, at 10:34 AM, Sergey Livanov wrote:
> I use Spring Dao + iBatis and I have to run into the one transaction
>
> inserts order document.
> ( insert into header values( docpk, docnum, docdate, client ) and
> many inserts as insert into( docfk, itempk, good, price, quantity ).
>
> I do not know how to create one transaction in the case of spring dao,
>
> And I do not know how to enter data for items by the iterates.
> Help me please.

I'm not sure if I understand the issue you are trying to solve, but
maybe my notes will help. I have notes on setting up declarative
transaction management with Spring at http://www.ociweb.com/mark/
programming/SpringTransactions.html.

Reply via email to