the Java PO class has List,Map or other classes as members, and mybatis acts as the dao layer
such as
Class Student{
int id;
School school;
List<String> courses;
List<Teacher> teachers;
Map<String, List<Integer>> courseScores;
}
School TeacherPO
Design a table in mysql, how to design the corresponding fields of school, teachers,courses,courseScores? Do school and teacher use school_id, teacher_id foreign keys directly? What about courses, courseScores?