ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: Mysql Database not showing the inserted record
Date Thu, 13 Dec 2007 13:22:08 GMT
Does your cache model have a flushOnExecute for that insert statement?

Larry


On Dec 13, 2007 12:22 AM, AVenkatesan <AVenkatesan@ceiindia.com> wrote:
>
>
> 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