You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Scott Morgan (JIRA)" <ib...@incubator.apache.org> on 2008/05/23 02:15:55 UTC

[jira] Created: (IBATIS-512) specifying custom boolean typehandler doesn't include primitives

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
            Priority: Minor


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.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (IBATIS-512) specifying custom boolean typehandler doesn't include primitives

Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/IBATIS-512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clinton Begin closed IBATIS-512.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.3

Fixed

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


[jira] Commented: (IBATIS-512) specifying custom boolean typehandler doesn't include primitives

Posted by "Scott Morgan (JIRA)" <ib...@incubator.apache.org>.
    [ 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.


[jira] Commented: (IBATIS-512) specifying custom boolean typehandler doesn't include primitives

Posted by "Ian Zabel (JIRA)" <ib...@incubator.apache.org>.
    [ 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.