Description
Consider this result mapping:
<resultMap id="animalWithAttributes" class="test.Animal" groupBy="id">
<result property="id" column="animalId" />
<result property="attributes" resultMap="animalAttributesMap"/>
</resultMap>
<resultMap id="extendedAnimalWithAttributes" class="test.AnimalWithType"
extends="animalWithAttributes">
<result property="type" column="animalType" />
</resultMap>
<resultMap id="animalAttributesMap" class="test.AnimalAttribute">
<result property="attribute" column="attribute"/>
</resultMap>
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.