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

ResultMap extends not work for constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • DataMapper 1.6.1, DataMapper 1.6.2, DataMapper 3.0
    • DataMapper 1.6.2
    • DataMapper
    • None

    Description

      Extending a resultmap the parent <constructor> not found in child resultmap.

      Example:

      <resultMap id="rmAll" class="Circle" >
      <constructor>
      <argument argumentName="id" dbType="UniqueIdentifier" column="pk" />
      </constructor>
      <result property="PropertyX" dbType="NVarChar" column="columnX"/>
      ......
      </resultMap>

      <resultMap id="rmAllPlusColor" extends="rmAll" class="Circle" >
      <result property="Color" dbType="Int" column="color" />
      </resultMap>

      If you use rmAllPlusColor the contructor Circle(Guid id) its no called.

      Searching, we found, it should completing the method BuildResultMap() at
      \IbatisNet.DataMapper\Configuration\DomSqlMapBuilder.cs,
      but ResultMap have no "Constructor" property, and no found a clear way of do this.

      Attachments

        Activity

          People

            gilles Gilles Bayon
            d.marzo David Marzo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 6h
                6h
                Remaining:
                Remaining Estimate - 6h
                6h
                Logged:
                Time Spent - Not Specified
                Not Specified