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: get id with iBatis (Statement.RETURN_GENERATED_KEYS)
Date Wed, 17 May 2006 16:09:52 GMT
Check the sqlmapconfig.xml, namespaces are probably enabled in the
settings element.

If they are (a good idea), you have to use the namespace from the sql
map file when you call the mapped statement.

Larry


On 5/16/06, xianwinwin <xianwinwin@gmail.com> wrote:
>
> ok, I think I'm getting somewhere, I changed my SqlMapConfig
>
> from:
>  <sql-map resource="com/ibatis/xml/TA.xml"/>
> to
> <sqlMap resource="com/ibatis/xml/TA.xml"/>
>
> it appears that the xml is ok (nothing crushes) but, when i get to the exec
> point, i get this message:
> There is no statement named addNewTA in this SqlMap.
>
> --
> View this message in context: http://www.nabble.com/get-id-with-iBatis-%28Statement.RETURN_GENERATED_KEYS%29-t1629789.html#a4418860
> Sent from the iBATIS - User - Java forum at Nabble.com.
>
>

Mime
View raw message