ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATIS-331) Nested Result Mappings are Not Propogated to Extended Result Maps
Date Tue, 08 Aug 2006 17:44:15 GMT
Nested Result Mappings are Not Propogated to Extended Result Maps

                 Key: IBATIS-331
                 URL: http://issues.apache.org/jira/browse/IBATIS-331
             Project: iBatis for Java
          Issue Type: Bug
          Components: SQL Maps
    Affects Versions: 2.1.7
         Environment: All
            Reporter: Jeff Butler
         Assigned To: Jeff Butler

Consider this result mapping:

  <resultMap id="animalWithAttributes" class="test.Animal" groupBy="id">
    <result property="id" column="animalId" />
    <result property="attributes" resultMap="animalAttributesMap"/>

  <resultMap id="extendedAnimalWithAttributes" class="test.AnimalWithType"
    <result property="type" column="animalType" />

  <resultMap id="animalAttributesMap" class="test.AnimalAttribute">
    <result property="attribute" column="attribute"/>

In this scenario, the nested result map (animalAttributesMap) is not propogated to the extended
resultMap (extendedAnimalWithAttributes).  No errors are thrown at run time, but the property
related to the nested result map will always be null.

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


View raw message