Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-264

Add 'suffix 'and 'prefix' attribute on resultMap tag

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • DataMapper 3.0
    • DataMapper 3.0
    • DataMapper
    • None

    Description

      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_" />

      Attachments

        Activity

          People

            gilles Gilles Bayon
            gilles Gilles Bayon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: