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.

108 lines
4.4 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 Repair extends Entity{ // 定义一个名为Repair的类继承自Entity类
private Integer id; // 定义一个私有的Integer类型的变量id
private Integer studentId; // 定义一个私有的Integer类型的变量studentId
private Integer dormitoryId; // 定义一个私有的Integer类型的变量dormitoryId
private Integer buildingId; // 定义一个私有的Integer类型的变量buildingId
@Length(max = 500) // 限制description字段的最大长度为500
private String description; // 定义一个私有的String类型的变量description
private Date createDate; // 定义一个私有的Date类型的变量createDate
private Integer status; // 定义一个私有的Integer类型的变量status用于表示维修状态0待解决/1已解决
private Student student; // 定义一个私有的Student类型的变量student
private Dormitory dormitory; // 定义一个私有的Dormitory类型的变量dormitory并命名为“宿舍”
private Building building; // 定义一个私有的Building类型的变量building并命名为“楼宇”
private String name; // 定义一个私有的String类型的变量name
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 getBuildingId() { // 定义一个公共方法getBuildingId用于获取buildingId的值
return buildingId;
}
public void setBuildingId(Integer buildingId) { // 定义一个公共方法setBuildingId用于设置buildingId的值
this.buildingId = buildingId;
}
public String getDescription() { // 定义一个公共方法getDescription用于获取description的值
return description;
}
public void setDescription(String description) { // 定义一个公共方法setDescription用于设置description的值
this.description = description;
}
public Date getCreateDate() { // 定义一个公共方法getCreateDate用于获取createDate的值
return createDate;
}
public void setCreateDate(Date createDate) { // 定义一个公共方法setCreateDate用于设置createDate的值
this.createDate = createDate;
}
public Integer getStatus() { // 定义一个公共方法getStatus用于获取status的值
return status;
}
public void setStatus(Integer status) { // 定义一个公共方法setStatus用于设置status的值
this.status = status;
}
public Student getStudent() { // 定义一个公共方法getStudent用于获取student的值
return student;
}
public void setStudent(Student student) { // 定义一个公共方法setStudent用于设置student的值
this.student = student;
}
public Dormitory getDormitory() { // 定义一个公共方法getDormitory用于获取dormitory的值
return dormitory;
}
public void setDormitory(Dormitory dormitory) { // 定义一个公共方法setDormitory用于设置dormitory的值
this.dormitory = dormitory;
}
public Building getBuilding() { // 定义一个公共方法getBuilding用于获取building的值
return building;
}
public void setBuilding(Building building) { // 定义一个公共方法setBuilding用于设置building的值
this.building = building;
}
public String getName() { // 定义一个公共方法getName用于获取name的值
return name;
}
public void setName(String name) { // 定义一个公共方法setName用于设置name的值
this.name = name;
}
}