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

Allow Constructor Initialization on resultMap

    XMLWordPrintableJSON

Details

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

    Description

      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

      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: