ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dott. Christian OLIVIERI" <colivier...@gmail.com>
Subject Placeholder and Update statement
Date Wed, 25 Jun 2008 17:32:55 GMT
Hi, this is my problem:
I want create a single java procedure to update a field on different 
table. For the reading statement all is right but for the update not.

The xml file hold the following code:
<update id="setlocker">

And the Java code is

String strStr = "UPDATE REGION SET locked='admin@123' WHERE ID=10";
mapToGiveIbatis = new java.util.HashMap(1);
mapToGiveIbatis.put("query", strStr);
ourutils.utils.sqlMap.update("setlocker", mapToGiveIbatis);

No errors and no exceptions thrown but my table was not updated.
Where I'm wrong?

View raw message