ibatis 一對一,一對多


        <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;

}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章