Re: Is there a way to validate parameterClass and resultClass for each ibatis query before runtime?

2005-07-22 Thread Bing Zou
of it I guess. ;-) > > Larry > > > > On 7/22/05, Bing Zou <[EMAIL PROTECTED]> wrote: > > Yes, I read that thread. Unfortunately, there don't exist many unit > > tests that directly test the correctness of the iBATIS queries. All > > the queries have b

Re: Is there a way to validate parameterClass and resultClass for each ibatis query before runtime?

2005-07-22 Thread Bing Zou
d yesterday or Wednesday, you can probably > find the thread in the archive. > > -ed > > On 7/22/05, Bing Zou <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > We are doing a lot of refactoring and one issue came up was that > > moving JavaBean, renaming

Is there a way to validate parameterClass and resultClass for each ibatis query before runtime?

2005-07-22 Thread Bing Zou
Hi all, We are doing a lot of refactoring and one issue came up was that moving JavaBean, renaming or overloading setter/getters could break the existing iBATIS queries. But we have to wait till runtime and test every related functionality for that purpose. I am wondering whether there is a way w

Automatic dynamic sorting.

2005-07-20 Thread Bing Zou
Hi, I have one question about dynamic sorting: Now for every sql statement that I want to apply dynamic sorting, I have to manually add "$OrderByClause$" at the end of that sql statement, which will be replaced by real "ORDER BY xxx" at runtime. I am wondering whether there is a way to append $Ord

Re: Am I doing anything wrong? iBATIS has very poor performance on batch inserts compared to JDBC.

2005-06-16 Thread Bing Zou
how it turns out. > > Cheers, > Clinton > > On 6/16/05, Bing Zou <[EMAIL PROTECTED]> wrote: > > Sorry for this lengthy thread. I didn't mean to offend, iBATIS is a > > great framework and there are a lot of companies including mine that > > are usi

Re: Am I doing anything wrong? iBATIS has very poor performance on batch inserts compared to JDBC.

2005-06-16 Thread Bing Zou
uot;, p_userID); > >sqlMap.insert("insertIntoTempTable", args); // <<<<<< > HOTSPOT > > } > > sqlMap.executeBatch(); > > > sqlMap.commitTransaction(); > > } finally { >sqlMap.endTran

Re: Am I doing anything wrong? iBATIS has very poor performance on batch inserts compared to JDBC.

2005-06-16 Thread Bing Zou
> in both the iBATIS test case as well as the JDBC test case, which is more > fair. > > Good luck. > > Clinton > > > On 6/16/05, Bing Zou <[EMAIL PROTECTED]> wrote: > > FYI: > > I debugged the code and found out that the SQLMapSessionImpl object &g

Re: Am I doing anything wrong? iBATIS has very poor performance on batch inserts compared to JDBC.

2005-06-16 Thread Bing Zou
transactionState called "STATE_USER_PROVIDED", I guess this is the value of transactionState while using "EXTERNAL" transaction manager? Thanks. Bing On 6/16/05, Bing Zou <[EMAIL PROTECTED]> wrote: > Just checked the iBATIS source code. > > The SqlMapExecutorDelegate.

Re: Am I doing anything wrong? iBATIS has very poor performance on batch inserts compared to JDBC.

2005-06-16 Thread Bing Zou
iBATIS? Thanks. Bing On 6/16/05, Bing Zou <[EMAIL PROTECTED]> wrote: > Why iBATIS batch has to be within a transaction while JDBC batch doesn't? > > Thanks. > Bing > > On 6/16/05, Larry Meadors <[EMAIL PROTECTED]> wrote: > > no, that looks right.