mybatis的collection用法,表示has-many

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