You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Sven Boden (JIRA)" <ib...@incubator.apache.org> on 2006/03/09 19:38:43 UTC

[jira] Closed: (IBATIS-210) Enum within Collection is not mapped to custom TypeHandler

     [ http://issues.apache.org/jira/browse/IBATIS-210?page=all ]
     
Sven Boden closed IBATIS-210:
-----------------------------

    Fix Version: 2.2.0
     Resolution: Fixed
      Assign To: Sven Boden

Fix checked in in SVN, works for pre 1.5 (without enums) as well as for 1.5+

Test case available but only runs on 1.5+ (since it uses enums), will be integrated when iBATIS reaches Java 5 as minimum requirement.

> Enum within Collection is not mapped to custom TypeHandler
> ----------------------------------------------------------
>
>          Key: IBATIS-210
>          URL: http://issues.apache.org/jira/browse/IBATIS-210
>      Project: iBatis for Java
>         Type: New Feature
>   Components: SQL Maps
>     Versions: 2.1.0
>  Environment: Linux/Spring/Resin/Jdk1.5
>     Reporter: Reuben Firmin
>     Assignee: Sven Boden
>      Fix For: 2.2.0

>
> Passing an Enum to Ibatis requires the declaration of a custom TypeHandler (see my comments here for my implementation: http://opensource2.atlassian.com/confluence/oss/display/IBATIS/How%20do%20I%20use%20a%20Custom%20Type%20Handler%20with%20complex%20property%20or%20Type%20Safe%20Enumeration)
> This works, except when the Enum is within a map or a list.
> That is, if I pass a list of Enum attributes to a statement, as a parameter, and attempt to iterate over them, they are mapped to UnknownTypeHandler. Similarly, when an Enum is passed as value in a HashMap as part of a parameter, it is also mapped to an UnknownTypeHandler.

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