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.

59 lines
2.5 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 javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.yanzhen.utils.Entity;
import java.util.Date;
public class Record extends Entity{ // 定义一个名为Record的类继承自Entity类
private Integer id; // 定义一个私有的Integer类型的变量id
private Integer studentId; // 定义一个私有的Integer类型的变量studentId
private Integer dormitoryId; // 定义一个私有的Integer类型的变量dormitoryId
private Integer bedId; // 定义一个私有的Integer类型的变量bedId
private Integer status; // 定义一个私有的Integer类型的变量status用于表示入住或退宿状态 1入住/2退宿
private Date createDate; // 定义一个私有的Date类型的变量createDate用于记录创建日期
public Integer getId() { // 定义一个公共方法getId用于获取id的值
return id;
}
public void setId(Integer id) { // 定义一个公共方法setId用于设置id的值
this.id = id;
}
public Integer getStudentId() { // 定义一个公共方法getStudentId用于获取studentId的值
return studentId;
}
public void setStudentId(Integer studentId) { // 定义一个公共方法setStudentId用于设置studentId的值
this.studentId = studentId;
}
public Integer getDormitoryId() { // 定义一个公共方法getDormitoryId用于获取dormitoryId的值
return dormitoryId;
}
public void setDormitoryId(Integer dormitoryId) { // 定义一个公共方法setDormitoryId用于设置dormitoryId的值
this.dormitoryId = dormitoryId;
}
public Integer getBedId() { // 定义一个公共方法getBedId用于获取bedId的值
return bedId;
}
public void setBedId(Integer bedId) { // 定义一个公共方法setBedId用于设置bedId的值
this.bedId = bedId;
}
public Integer getStatus() { // 定义一个公共方法getStatus用于获取status的值
return status;
}
public void setStatus(Integer status) { // 定义一个公共方法setStatus用于设置status的值
this.status = status;
}
public Date getCreateDate() { // 定义一个公共方法getCreateDate用于获取createDate的值
return createDate;
}
public void setCreateDate(Date createDate) { // 定义一个公共方法setCreateDate用于设置createDate的值
this.createDate = createDate;
}
}