学生表关联学生的课程表(一对多)
学生表实体类:
@Entity
@Table(name = "JXD_COM_STUDENT")
public class StudentModel {
//model与vo的转换规则
public static final String[] CONVERT_VO_MAPPING_TYPE = new String[] {"stuSex(mark=xb):stuSexName",
"studentCourses(class=com.gr.test02.model.StudentCourseModel):studentCoursesJson"};
/**
* 主键
*/
private String id;
/** 姓名 */
private String stuName;
/** 学生的课程信息 */
private Set<StudentCourseModel> studentCourses = new HashSet<StudentCourseModel>();
。。。@Entity
@Table