ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daigo Kobayashi <da...@abs-network.com>
Subject Is it possible to create 1:N + 1:M object.
Date Thu, 15 Mar 2007 17:01:17 GMT
Hi,

Is it possible to create 1:N + 1:M object.

I think iBatis can create 1:N object, if I use
groupBy. So it is possible to create 1:N + 1:M object?

For example;
<resultMap id="aaa" groupBy="a">
   ...
   <result property="xxx" resultMap="bbb"/>
   <result property="yyy" resultMap="ccc"/>
</resultMap>

<resultMap id="bbb" groupBy="b">
   ...
</resultMap>

<resultMap id="ccc" groupBy="c">
   ...
</resultMap>

If I create sqlmap file like this, can iBatis handle 1:N + 1:M?


Mime
View raw message