ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Bayon (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATISNET-264) Add 'suffix 'and 'prefix' attribute on resultMap tag
Date Sun, 18 May 2008 15:52:55 GMT
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

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

View raw message