You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
2.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.yanzhen.entity;
import org.hibernate.validator.constraints.Length;
import com.yanzhen.utils.Entity;
import java.util.Date;
public class Absence extends Entity{// 定义一个名为Absence缺勤的类继承自Entity类
private Integer id;// 定义私有变量id用于存储缺勤记录的唯一标识符
private Integer studentId;// 定义私有变量studentId用于存储学生的唯一标识符
private Integer dormitoryId;// 定义私有变量dormitoryId用于存储宿舍的唯一标识符
private Date startTime;// 定义私有变量startTime用于存储缺勤开始时间
private Date endTime;// 定义私有变量endTime用于存储缺勤结束时间
@Length(max = 200)// 定义私有变量remark用于存储备注信息并限制其最大长度为200个字符
private String remark;
private Student student;// 定义私有变量student用于存储与缺勤记录关联的学生对象
private Dormitory dormitory;// 定义私有变量dormitory用于存储与缺勤记录关联的宿舍对象
private String name;// 定义私有变量name用于存储缺勤记录的名称或描述
public Integer getId() {// 获取id的值
return id;
}
public void setId(Integer id) {// 设置id的值
this.id = id;
}
public Integer getStudentId() {// 获取studentId的值
return studentId;
}
public void setStudentId(Integer studentId) {// 设置studentId的值
this.studentId = studentId;
}
public Integer getDormitoryId() {// 获取dormitoryId的值
return dormitoryId;
}
public void setDormitoryId(Integer dormitoryId) {// 设置dormitoryId的值
this.dormitoryId = dormitoryId;
}
public Date getStartTime() {// 获取startTime的值
return startTime;
}
public void setStartTime(Date startTime) {// 设置startTime的值
this.startTime = startTime;
}
public Date getEndTime() {// 获取endTime的值
return endTime;
}
public void setEndTime(Date endTime) {// 设置endTime的值
this.endTime = endTime;
}
public String getRemark() {// 获取remark的值
return remark;
}
public void setRemark(String remark) {// 设置remark的值
this.remark = remark;
}
public Student getStudent() {// 获取student的值
return student;
}
public void setStudent(Student student) {// 设置student的值
this.student = student;
}
public Dormitory getDormitory() {// 获取dormitory的值
return dormitory;
}
public void setDormitory(Dormitory dormitory) { // 设置dormitory的值
this.dormitory = dormitory;
}
public String getName() {// 获取name的值
return name;
}
public void setName(String name) {// 设置name的值
this.name = name;
}
}