ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huy Do (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATIS-225) Reuse resultmap for single bean property
Date Fri, 18 Nov 2005 12:21:41 GMT
Reuse resultmap for single bean property

         Key: IBATIS-225
         URL: http://issues.apache.org/jira/browse/IBATIS-225
     Project: iBatis for Java
        Type: Improvement
  Components: SQL Maps  
    Reporter: Huy Do

Allow the following reuse of result maps

<resultMap id="Pick" class="package.domain.Pick">
  <result property="pickId" column="pick_id"/>
   <result property="sale" resultMap="Sale"/>

<resultMap id="Sale" class="Sale">
   <result column="sale_id" property="saleId"/>

with beans

class Pick {
      String pickId;
      Sale sale;

class Sale {
      String saleId;

At the moment <result property="sale" resultMap="Sale"/> can only be reused if property
"sale" is a collection.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message