You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org> on 2006/06/06 21:11:30 UTC

[jira] Closed: (IBATISNET-155) Allow Constructor Initialization on resultMap

     [ http://issues.apache.org/jira/browse/IBATISNET-155?page=all ]
     
Gilles Bayon closed IBATISNET-155:
----------------------------------


> Allow Constructor Initialization on resultMap
> ---------------------------------------------
>
>          Key: IBATISNET-155
>          URL: http://issues.apache.org/jira/browse/IBATISNET-155
>      Project: iBatis for .NET
>         Type: New Feature

>   Components: DataMapper
>     Versions: DataMapper 1.5
>     Reporter: Gilles Bayon
>     Assignee: Gilles Bayon
>     Priority: Minor
>      Fix For: DataMapper 1.5

>
> Something like
> <resultMap id="account-result-constructor"  class="Account" >
>         <constructor>
>               <argument argumentName="id"                 column="Account_ID"/>
>               <argument argumentName="firstName"  column="Account_FirstName"/>
>               <argument argumentName="lastName"   column="Account_LastName"/>
>        </constructor>
>        <result property="EmailAddress" column="Account_Email" nullValue="no_email@provided.com"/>
>        <result property="BannerOption" column="Account_Banner_Option" dbType="Varchar" type="bool"/>
>         <result property="CartOption"	column="Account_Cart_Option" typeHandler="HundredsBool"/>
> </resultMap>
> See http://www.martinfowler.com/bliki/ConstructorInitialization.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira