Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Batch Update using spring and ibatis

 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I tried using the following with ibatis
getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
public Object doInSqlMapClient(SqlMapExecutor executor)
throws SQLException {
executor.startBatch();
for (int i = 0; i < myList.size(); i++) {
executor.insert("mySQLNameSpace.updateTable", myList.get(i));
BatchResult e = null;
}
}

It is not working at all. Its giving me the following exception.
No statement named "updateTable". Any help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic