Handling Transactions within a DAO

2009-09-01 Thread Carmichael, Scott
Hi I want to begin a transaction within a DAO unless a transaction has already been started. IsTransaction returns false as expected, but when I try BeginTransaction it reports DaoManager could not invoke BeginTransaction(). A DaoSession is already started. Everything works fine if I begin

Re: generate tag not working

2009-09-01 Thread Michael McCurrey
Well, One thing I notice that is wrong is your using a result element in your parameter Maps. Instead of this: parameterMap id=insert class=Test result property=Name column=name / /parameterMap Try this: parameterMap id=insert class=Test parameter property=Name column=name /

Re: generate tag not working

2009-09-01 Thread dannystommen
Thanks for your fast reply. I changed it, but the result is still the same incorrect sql statement Michael McCurrey-3 wrote: Well, One thing I notice that is wrong is your using a result element in your parameter Maps. Instead of this: parameterMap id=insert class=Test

Re: generate tag not working

2009-09-01 Thread dannystommen
Version 1.6.1 Michael McCurrey-3 wrote: What version of iBatis? On Tue, Sep 1, 2009 at 8:12 AM, dannystommen da...@techconnect.nl wrote: Thanks for your fast reply. I changed it, but the result is still the same incorrect sql statement Michael McCurrey-3 wrote: Well, One

Re: generate tag not working

2009-09-01 Thread Michael McCurrey
Can you update to 1.6.3 and see if it works, if not, send me your updated map file and I'll take a look. Did you change the result for both your insert and your update map? On Tue, Sep 1, 2009 at 8:18 AM, dannystommen da...@techconnect.nl wrote: Version 1.6.1 Michael McCurrey-3 wrote:

Re: generate tag not working

2009-09-01 Thread Michael McCurrey
I think I meant 1.6.2, 1.6.3 is in the works.. On Tue, Sep 1, 2009 at 8:22 AM, Michael McCurrey mmccur...@gmail.comwrote: Can you update to 1.6.3 and see if it works, if not, send me your updated map file and I'll take a look. Did you change the result for both your insert and your update