[ 
https://issues.apache.org/jira/browse/IBATIS-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Larry Meadors closed IBATIS-422.
--------------------------------

    Resolution: Invalid

Try the mailing list before posting bugs please.



> allow <resultMap class=Map> to work
> -----------------------------------
>
>                 Key: IBATIS-422
>                 URL: https://issues.apache.org/jira/browse/IBATIS-422
>             Project: iBatis for Java
>          Issue Type: Improvement
>          Components: SQL Maps
>    Affects Versions: 2.2.0
>            Reporter: CN
>
> I want to be able to add arbitrary number of calculated columns (determined 
> at runtime) to a query and have those results placed into a Map along with 
> predefined columns. For example,
> <resultMap id="someOrder">
>    <result property="id" column="ID"/>
>    <result property="order" column="ORDER"/>
>    <result property="total" column="ORDER_TOTAL"/>
>    <result property="calculations" resultMap="GenericMap"/>
> </resultMap>
> <resultMap id="GenericMap" class="Map"/>
> This should map all columns with the name "calculations.XXX" into a Map using 
> put(XXX, * ).  Currently the code only allows using setXXX( * ).  One ugly 
> workaround requires running 2 queries (one with just predefined columns and 
> the other with the calculated columns) and having Java associate the two 
> results.

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

Reply via email to