其實我在我的batis新的,想幫我在波紋管方案 我想回去對象,它有兩個名單的一員,從在Mybatis中選擇查詢的結果。 例如我的對象類 public class ABC{
List Boys;
List Girls;
}
,我想從波紋管查詢生成ABC的單個實例 Select Boy_roll_no , Boy_name, Girl_roll_no , Girl_name
select * from users where id in()
查詢如上所示。 <select id="getByIds" resultMap="BaseResultMap">
SELECT
<include refid="BaseColumnList"/>
FROM users
WHERE id IN
<foreach item="id"
我使用Spring和MyBatis。我試圖通過引用Can we import XML file into another XML file?來導入另一個MyBatis文件(這是自動生成的)。 1)MyTest.xml <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD