Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
DataMapper 1.5
-
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