You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Zhongmin Chen <zh...@gmail.com> on 2006/02/01 22:03:05 UTC

Insert returned object is NULL

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