当前位置:首页 > Java 框架原理百科 > 正文

MyBatis查Java优学网多对多查询实战:轻松掌握复杂数据关联处理技巧

<result property="name" column="student_name"/>
<collection property="courses" ofType="Course">
    <id property="id" column="course_id"/>
    <result property="name" column="course_name"/>
</collection>

<result property="name" column="name"/>
<collection property="courses" column="id" 
            select="findCoursesByUserId"/>

MyBatis查Java优学网多对多查询实战:轻松掌握复杂数据关联处理技巧

你可能想看:

相关文章:

文章已关闭评论!