<resultMap type="Area" id="aream">
<id column="aid" property="aid" />
<result column="aname" property="aname" />
<collection property="groups" ofType="Group">
<id column="gid" property="gid" />
<result column="gname" property="gname" />
</collection>
</resultMap>

<select id="selectAreaByID" resultMap="aream">
select aid,aname,gid,gname
from areas,groups
where areaid=aid and aid=#{xxx}
</select>
junit单元测试报错 gid和gname并没有封装成Group类### Error querying database.  Cause: org.apache.ibatis.executor.ExecutorException: No constructor found in com.jackie.entity.Area matching [java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.String]