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

Gilles Bayon closed IBATISNET-264.
----------------------------------

    Resolution: Fixed

Allow to reuse a resultMap definition with prefixing/suffixing column

<resultMap id="order-result-suffix" class="Order" extends="base-order-result" 
suffix="_suffix" />
<resultMap id="order-result-prefix" class="Order" extends="base-order-result" 
prefix="prefix_" />

> Add 'suffix 'and 'prefix' attribute on resultMap tag
> ----------------------------------------------------
>
>                 Key: IBATISNET-264
>                 URL: https://issues.apache.org/jira/browse/IBATISNET-264
>             Project: iBatis for .NET
>          Issue Type: New Feature
>          Components: DataMapper
>    Affects Versions: DataMapper 3.0
>            Reporter: Gilles Bayon
>            Assignee: Gilles Bayon
>            Priority: Minor
>             Fix For: DataMapper 3.0
>
>
> To avoid typing, add 'suffix' and 'prefix' attribute in tag resultMap, will 
> add the specidief prefix/suffix value to the column name
> Example:
>     <resultMap id="base-order-result" class="Order">
>       <result property="Id"         column="Order_ID"/>
>       <result property="Date"       column="Order_Date"/>
>       <result property="CardExpiry" column="Order_CardExpiry"/>
>       <result property="CardType"   column="Order_CardType"/>
>       <result property="CardNumber" column="Order_CardNumber"/>
>       <result property="Street"     column="Order_Street"/>
>       <result property="City"       column="Order_City"/>
>       <result property="Province"   column="Order_Province"/>
>       <result property="PostalCode" column="Order_PostalCode"/>
>     </resultMap>
>     <resultMap id="order-result-suffix" class="Order" 
> extends="base-order-result" suffix="_suffix" />
>     <resultMap id="order-result-prefix" class="Order" 
> extends="base-order-result" prefix="prefix_" />

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