mybatis的collection用法,表示has-many

前提:Teacher(integer id,String name,List<Student> students); <resultMap> <collection property="students" resultMap="StudentMapper.StudentResultMap" /> </resultMap> <!-- StudengResultMap 在 StudentMapper
相关文章
相关标签/搜索