Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
DataMapper 3.0
-
None
Description
To avoid typing, add 'suffix' and 'prefix' attribute in tag resultMap, will add the specidief prefix/suffix value to the column name
Example:
<resultMap id="base-order-result" class="Order">
<result property="Id" column="Order_ID"/>
<result property="Date" column="Order_Date"/>
<result property="CardExpiry" column="Order_CardExpiry"/>
<result property="CardType" column="Order_CardType"/>
<result property="CardNumber" column="Order_CardNumber"/>
<result property="Street" column="Order_Street"/>
<result property="City" column="Order_City"/>
<result property="Province" column="Order_Province"/>
<result property="PostalCode" column="Order_PostalCode"/>
</resultMap>
<resultMap id="order-result-suffix" class="Order" extends="base-order-result" suffix="_suffix" />
<resultMap id="order-result-prefix" class="Order" extends="base-order-result" prefix="prefix_" />