mybatis 一对多。对多对

		<result property="remark"       column="remark"       />
		<association property="dept"    column="dept_id" javaType="SysDept" resultMap="deptResult" />
		<collection  property="roles"   javaType="java.util.List"        resultMap="RoleResult" />
		<collection  property="posts"   javaType="java.util.List"        resultMap="PostResult" />

  

原文地址:https://www.cnblogs.com/gzhbk/p/15120173.html