You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Barnes, Jim D" <Ji...@ps.net> on 2008/07/22 21:01:17 UTC
Using element as group criteria
Anyone know of any way to use an element in result map as "groupBy"
criteria. For example,
<resultMap id="providerRelationshipResultMap"
class="ProviderRelationship"
groupBy="hospitalAssoc[0].physicianNumber, type">
<result property="hospitalAssoc"
resultMap="hospitalAssociationResultMap"/>
<result property="type" column="CODE"/>
</resultMap>
Thanks!