package com.two.studentRoll.model; import java.sql.Date; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToOne; import javax.persistence.Table; import com.two.studentRoll.model.ClassStage; import com.two.studentRoll.model.ClassType; import com.two.studentRoll.model.Subjects; import com.two.studentRoll.model.User; /** * 班级信息Model * * @author The bird is my most loving smile * @version 1.0 * @created 19-二月-2014 13:36:50 */ @Entity @Table(name = "t_classes") public class Classes { /** * OID */ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "pk_id") private int id; /** * 班级编码 */ @Column(name = "f_classCode") private String classCode; /** * 班级名称 */ @Column(name = "f_className") private String className; /** * 班主任 */ @ManyToOne(cascade = CascadeType.ALL) @JoinColumn(name = "fk_teacher_id") private User teacher; /** * 班级类型 */ @OneToOne @JoinColumn(name = "fk_classesType_id") private ClassType classType; /** * 开班时间 */ @Column(name = "f_startDate") private Date startDate; /** * 毕业时间(预计班级毕业时间) */ @Column(name = "f_graduateDate") private Date graduateDate; /** * 所处阶段 */ @OneToOne @JoinColumn(name = "fk_stage_id") private ClassStage stage; /** * 班级状态 * */ @Column(name = "f_state") private String state; /** * QQ群 */ @Column(name = "f_qqCode") private String qqGroup; /** * 备注信息 */ @Column(name = "f_remark") private String remark; /** * 项目经理 */ @Column(name = "f_projectManager") private String projectManager; /** * 课程 */ @OneToOne @JoinColumn(name = "fk_subject_id") private Subjects subject; /** * 课程时间 */ @Column(name = "f_scourseDate") private int scourseDate; public Classes() { } public int classesId() { return id; } public void setId(int id) { this.id = id; } public String getClassCode() { return classCode; } public void setClassCode(String classCode) { this.classCode = classCode; } public String getClassName() { return className; } public void setClassName(String className) { this.className = className; } public User getTeacher() { return teacher; } public void setTeacher(User teacher) { this.teacher = teacher; } public ClassType getClassType() { return classType; } public void setClassType(ClassType classType) { this.classType = classType; } public Date getStartDate() { return startDate; } public void setStartDate(Date startDate) { this.startDate = startDate; } public Date getGraduateDate() { return graduateDate; } public void setGraduateDate(Date graduateDate) { this.graduateDate = graduateDate; } public ClassStage getStage() { return stage; } public void setStage(ClassStage stage) { this.stage = stage; } public String getState() { return state; } public void setState(String state) { this.state = state; } public String getQqGroup() { return qqGroup; } public void setQqGroup(String qqGroup) { this.qqGroup = qqGroup; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public String getProjectManager() { return projectManager; } public void setProjectManager(String projectManager) { this.projectManager = projectManager; } public Subjects getSubject() { return subject; } public void setSubject(Subjects subject) { this.subject = subject; } public int getScourseDate() { return scourseDate; } public void setScourseDate(int scourseDate) { this.scourseDate = scourseDate; } public int getId() { return id; } @Override public String toString() { return "Classes [id=" + id + ", classCode=" + classCode + ", className=" + className + ", teacher=" + teacher + ", startDate=" + startDate + ", graduateDate=" + graduateDate + ", state=" + state + ", qqGroup=" + qqGroup + ", remark=" + remark + ", projectManager=" + projectManager + ", scourseDate=" + scourseDate + "]"; } public Classes(String classCode, String className, User teacher, ClassType classType, Date startDate, Date graduateDate, ClassStage stage, String state, String qqGroup, String remark, String projectManager, Subjects subject, int scourseDate) { super(); this.classCode = classCode; this.className = className; this.teacher = teacher; this.classType = classType; this.startDate = startDate; this.graduateDate = graduateDate; this.stage = stage; this.state = state; this.qqGroup = qqGroup; this.remark = remark; this.projectManager = projectManager; this.subject = subject; this.scourseDate = scourseDate; } }
最近下载更多
asddwh LV13
2023年12月26日
政政123456 LV3
2023年12月10日
fesfefe LV13
2023年9月14日
mayong1234 LV6
2023年6月14日
1455384106 LV2
2023年5月8日
康日澜 LV9
2023年3月22日
linmou LV8
2023年3月13日
asdadd LV1
2022年12月19日
番茄and番茄1 LV1
2022年11月20日
2089675149 LV7
2022年11月13日
最近浏览更多
black8angel LV4
11月13日
shunlun8855 LV1
10月29日
linhua LV1
10月11日
微信网友_7123559591677952
8月14日
暂无贡献等级
暂无贡献等级
123456cjj LV1
6月2日
dfvbhjksdfh LV1
5月29日
yyhrhv LV8
5月23日
647123 LV1
5月14日
792891244 LV3
5月13日