您的位置:首页 > 其它

ibatis 一对一,一对多

2013-12-06 17:37 260 查看
<resultMap class="XX" id="XX">

<result column="id" property="id" />

<result column="dd" property="dd" />

<result column="cc" property="satl_id" />

<result column="id" property="aa"

select="空间名.getXX" />

<result column="id" property="bb"

select="空间名.getXX" />

</resultMap>

<select id="getxx" resultClass="xx">

<![CDATA[

select * from xx where isdeleted = 0 and xx_id==#value#

]]>

</select>

class{

AA aa;

List<BB> bb;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: