ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Morgan (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Commented: (IBATIS-512) specifying custom boolean typehandler doesn't include primitives
Date Wed, 23 Jul 2008 23:24:31 GMT

    [ 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.


Mime
View raw message