ibatis-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/IBATIS-512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614462#action_12614462

Ian Zabel commented on IBATIS-512:

Issue https://issues.apache.org/jira/browse/IBATIS-244 also fixes this issue. It's in 2.3.3.

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

View raw message