[ http://issues.apache.org/jira/browse/IBATIS-257?page=comments#action_12368022 ]
Thomas Wagner commented on IBATIS-257: -------------------------------------- Sven, this bug is not an iBatis bug. I have used getter.wasNull() in the getResult method of TypeHandlerCallback, like described in the following thread: http://opensource2.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+a+Custom+Type+Handler+with+complex+property+or+Type+Safe+Enumeration For all the others: please read the comment from Reuben Firmin (or the API documentation for the ResultSet class) and use getter.getObject() instead of getter.wasNull() - and all works fine. So this bug can be closed. > custom TypeHandlerCallback does not work - sometimes > ---------------------------------------------------- > > Key: IBATIS-257 > URL: http://issues.apache.org/jira/browse/IBATIS-257 > Project: iBatis for Java > Type: Bug > Components: SQL Maps > Versions: 2.1.7 > Environment: WinXP; iBatis 2.1.7; Oracle 9i; JDK 1.4+ > Reporter: Thomas Wagner > > The usage of a custom TypeHandlerCallback depends on the position of the > column in the resultMap. > If the previous colum has a value, all works fine. But if the value of the > previous column is null, the mapping via a custom TypeHandlerCallback does > not work. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira