ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Carleton <daniel.carle...@pobox.com>
Subject Re: GroupBy + Discriminator + Polymorphism
Date Fri, 13 Apr 2007 20:52:40 GMT
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.


- Daniel

View raw message