[
https://issues.apache.org/jira/browse/IBATIS-512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616303#action_12616303
]
Scott Morgan commented on IBATIS-512:
-------------------------------------
Looks like the issue was fixed similarly to the patch without some of the
cleanup that was in the patch. But hey, the problem is solved. thanks
> specifying custom boolean typehandler doesn't include primitives
> ----------------------------------------------------------------
>
> Key: IBATIS-512
> URL: https://issues.apache.org/jira/browse/IBATIS-512
> Project: iBatis for Java
> Issue Type: Bug
> Components: SQL Maps
> Affects Versions: 2.3.2
> Reporter: Scott Morgan
> Fix For: 2.3.3
>
> Attachments: patch.txt
>
>
> Registering a TypeHandler only works with Boolean objects, not primitives.
> In my case I'm trying to map a Y/N value to a boolean primitive using the
> YesNoBoolTypeHandlerCallback provided in the docs. This TypeHandler is only
> used if I define the property in my class as a Boolean object, or if I
> specify the javaType="boolean" in the result map. Otherwise the
> BooleanTypeHandler is used and the value is alway false.
> Looks like this problem has existed for awhile.
> http://www.nabble.com/My-Boolen-handler-seems-to-be-only-working-in-one-direction...-to4381876.html#a4381876
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.