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

Gilles Bayon closed IBATISNET-260.
----------------------------------

       Resolution: Fixed
    Fix Version/s: DataMapper 1.6.2
         Assignee: Gilles Bayon

> ResultMap extends not work for constructor
> ------------------------------------------
>
>                 Key: IBATISNET-260
>                 URL: https://issues.apache.org/jira/browse/IBATISNET-260
>             Project: iBatis for .NET
>          Issue Type: Bug
>          Components: DataMapper
>    Affects Versions: DataMapper 1.6.1, DataMapper 1.6.2, DataMapper 2.0
>            Reporter: David Marzo
>            Assignee: Gilles Bayon
>             Fix For: DataMapper 1.6.2
>
>   Original Estimate: 6h
>  Remaining Estimate: 6h
>
> 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.

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