ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From top de castro <rocieldecas...@yahoo.com>
Subject nullValue for Boolean wrapper class property
Date Thu, 10 Jan 2008 15:40:27 GMT

I am using a TypeHandlerCallback to map a Boolean
property to a DB2 character(1) field that contains 'T'
or 'F'.   

I cannot get the nullValue property to return the
value "F" when the database field value is NULL.  The
exception is: 

    java.sql.SQLException: Unexpected value null found
where T or F was expected. 

Neither of these work: 
  <result property="cardRequested" column="dp_card"
  <result property="cardRequested" column="dp_card"
javaType="Boolean" jdbcType="CHARACTER"

Any help would be much appreciated! 

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

View raw message