ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reuben Firmin (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Commented: (IBATIS-210) Enum within Collection is not mapped to custom TypeHandler
Date Tue, 17 Jan 2006 23:00:42 GMT
    [ http://issues.apache.org/jira/browse/IBATIS-210?page=comments#action_12363044 ] 

Reuben Firmin commented on IBATIS-210:

The iterate side of things is a red herring, at least on this bug; if I have the syntax wrong
there, sorry.

The real issue is enum support within a collection; if a list or a map contains enums, they
aren't properly assigned to their customtypehandlers. I can live with this being a feature
request for the time being.

On your final question, I will test and update this bug w/ the results. Please ping me if
I haven't by the time you are ready to add support for enums.


> 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: Bug
>   Components: SQL Maps
>     Versions: 2.1.0
>  Environment: Linux/Spring/Resin/Jdk1.5
>     Reporter: Reuben Firmin

> 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:
For more information on JIRA, see:

View raw message