ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhaarat Sharma <bhaara...@gmail.com>
Subject what to put in nullValue when date value is null
Date Thu, 11 Feb 2010 20:24:11 GMT
I have following in my result mapping:

<result property="updateDate" column="update_date" javaType="java.sql.Date"
jdbcType="DATE" nullValue="01/01/1900"/>

setUpdateDate is accepting parameter of type Date
update_date column can sometimes be null. In this case I want the date to be

It is giving me an error: java.lang.RuntimeException: Error setting property

What is the way to put nullValue for a date field?

View raw message