ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "AVenkatesan" <AVenkate...@ceiindia.com>
Subject Re: Mysql Database not showing the inserted record
Date Thu, 13 Dec 2007 07:22:01 GMT
Thank For your reply Axel
But at last i tried following whicvh got worked,

 sqlMapClient.startTransaction();
        sqlMapClient.insert("Code.insertCode",code);
        sqlMapClient.flushDataCache();
        sqlMapClient.commitTransaction();
        sqlMapClient.endTransaction();

Thanks
Venkatesan
  ----- Original Message ----- 
  From: Leucht, Axel 
  To: user-java@ibatis.apache.org ; AVenkatesan 
  Sent: Thursday, December 13, 2007 1:03 PM
  Subject: AW: Mysql Database not showing the inserted record


  Instead of calling update() try
     Object primaryKey = sqlMapSession.insert("insertCode",code);
  /Axel 

Mime
View raw message