ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhongmin Chen <zhongmin.c...@gmail.com>
Subject Insert returned object is NULL
Date Wed, 01 Feb 2006 21:03:05 GMT
Hi,

I am using Spring with iBATIS, and calling the following method:


org.springframework.orm.ibatis.support.SqlMapClientDaoSupport.getSqlMapClientTemplate().insert("statement",
parameterObj);

which is calling the insert method of iBATIS SQL Map:
public java.lang.Object *insert*(java.lang.String id,
                                java.lang.Object parameterObject)
                        throws java.sql.SQLException


It is supposed to return "The primary key of the newly inserted row",
but I got a NULL object.

Anybody know why?

Thanks in advance!

Zhongmin

Mime
View raw message