ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: Use isNull (in sqlMap) with a Long value?
Date Fri, 04 Nov 2005 16:05:41 GMT
I think you can leave out the property-attribute.

Niels

-----Original Message-----
From: Steven Pannell [mailto:steven.pannell@zooplus.com] 
Sent: vrijdag 4 november 2005 17:05
To: user-java@ibatis.apache.org
Subject: 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


Mime
View raw message