Hey Mikael, > <resultMap id="polyMap" extends="superMap"> > <discriminator javaType="String" column="entity_type"> > <subMap value="foo" resultMap="fooMap"/> > <subMap value="bar" resultMap="barMap"/> > </discriminator> > </resultMap>
Yeah, I've tried things like this, but apparently <resultMap>s must contain at least one <result>. I'll play around with putting the groupBy in different places, and maybe try tracing into the iBATIS source to see what's going on. Thanks for the input. Cheers, - Daniel