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 Steven Pannell <st...@zooplus.com> on 2005/11/04 17:04:30 UTC
Use isNull (in sqlMap) with a Long value?
Hi,
I want to make use of the isNull option in the sqlMap using a Long as the
parameter class like this:
<update id="update" parameterClass="java.lang.Long">
UPDATE log
SET new =
<isNotNull property="value">
10
</isNotNull>
<isNull property="value">
1000
</istNull>
where ID = #value#
</update>
But it does not work as I get the error java.lang.Long does not contain a
method value.
Anyone know how I can get this working?
thanks,
Steve