教务管理系统之pojo层
Answer
package com.example.academicadministration.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.sql.Timestamp;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Answer {
private String stuid;
private int homeworkid;
private int score;
private byte[] answerfile;
private Timestamp submittime;
}
Course
package com.example.academicadministration.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Course {
private int courseid;
private String coursename;
private int coursenumber;
private int courselimit;
private String courseday;
private String coursetime;
private String courseroom;
private String coursekind;
private Teacher teacher;
}
Homework
package com.example.academicadministration.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.sql.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Homework {
private int homeworkid;
private int courseid;
private Date startline;
private Date endline;
private String homeworkrequest;
private byte[] homeworkfile;
}
Manger
package com.example.academicadministration.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Manger {
private String mangerid;
private String mangerpwd;
}
Student
package com.example.academicadministration.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
private String stuid;
private String stupwd;
private String stuname;
private String stusex;
private String sturace;
private String stuorigin;
private String stuenrollment;
private String stucollege;
private String stumajor;
private String stuclass;
private String stuphone;
private byte[] stuphoto;
private Boolean stustate;
private Answer myAnswer;
}
Teacher
package com.example.academicadministration.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
private String teaid;
private String teapwd;
private String teaname;
private String teasex;
private String tearace;
private String teaorigin;
private String teacollege;
private String teapost;
private String teagraduation;
private String teadegree;
private String teaphone;
private byte[] teaphoto;
private Boolean teastate;
}
Video
package com.example.academicadministration.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDate;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Video {
private int videoid;
private int courseid;
private String videoname;
private String videointroducation;
private String videofile;
private byte[] videocover;
private LocalDate videotime;
}