Re: QueryByExample

2006-03-19 Thread DaqiQian2
Jeff,   Thanks for help. It seems that we can only use either 'or' or 'and' in a single queryByExample query.   Tony

how to use batch transaction if iBATIS DAO is used

2006-03-19 Thread DaqiQian2
all,   If we use iBATIS (sqlMap) only, I can write following code for batch transaction and make it atomic:   try {    //do batch insert here    sqlMap.startTransaction();    sqlMap.startBatch ();    for (int i=0, n=list.size(); i < n; i++) {    sqlMap.