I have the following in one of my result mappings.
<result property="updateDate" column="update_date" javaType="java.util.Date"
jdbcType="DATE" nullValue="01/01/1900"/>
basically updateDate
is a setter that accepts Date
. However, sometimes updateDate
will be null
in the database. In those cases I want to have a default date of 01/01/1900
.
However, the above mappings gives me the following error when updateDate
is null from DB
Cause: java.lang.RuntimeException: Error setting property 'setUpdateDate'