ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barnes, Jim D" <Jim.Barn...@ps.net>
Subject Using element as group criteria
Date Tue, 22 Jul 2008 19:01:17 GMT

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!


Mime
View raw message