Ibatis Vo 中含有List

<resultMap type="com.card.transaction.payment.pojo.sql.Tempab" id="selectab">
      <result property="task" column="task"/>
      <collection property="list" column="productname" ofType="java.lang.String">
         <result column="productname"/>
      </collection>
   </resultMap>
   
   <select id="selectTM" resultMap="selectab">
      select task,productname from a,b where a.id=b.id
   </select>

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