|
|
package com.yanzhen.entity;
|
|
|
|
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
import com.yanzhen.utils.Entity;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Dormitory extends Entity{// 定义一个名为Dormitory宿舍的类,继承自Entity类
|
|
|
|
|
|
private Integer id;// 定义一个私有的Integer类型的id变量
|
|
|
|
|
|
|
|
|
@Length(max = 50)// 使用@Length注解限制no字段的最大长度为50
|
|
|
|
|
|
private String no;// 定义一个私有的String类型的no变量
|
|
|
|
|
|
|
|
|
private Integer sex; // 定义一个私有的Integer类型的sex变量
|
|
|
|
|
|
|
|
|
private Integer type;// 定义一个私有的Integer类型的type变量
|
|
|
|
|
|
|
|
|
private Integer capacity;// 定义一个私有的Integer类型的capacity变量
|
|
|
|
|
|
|
|
|
private Integer storeyId;// 定义一个私有的Integer类型的storeyId变量
|
|
|
|
|
|
|
|
|
private Integer buildingId;// 定义一个私有的Integer类型的buildingId变量
|
|
|
|
|
|
|
|
|
public Integer getId() {
|
|
|
return id;// 获取id的值
|
|
|
}
|
|
|
|
|
|
public void setId(Integer id) {
|
|
|
this.id = id;// 设置id的值
|
|
|
}
|
|
|
|
|
|
public String getNo() {
|
|
|
return no;// 获取no的值
|
|
|
}
|
|
|
|
|
|
public void setNo(String no) {
|
|
|
this.no = no; // 设置no的值
|
|
|
}
|
|
|
|
|
|
public Integer getSex() {
|
|
|
return sex;// 获取sex的值
|
|
|
}
|
|
|
|
|
|
public void setSex(Integer sex) {
|
|
|
this.sex = sex;// 设置sex的值
|
|
|
}
|
|
|
|
|
|
public Integer getType() {
|
|
|
return type;// 获取type的值
|
|
|
}
|
|
|
|
|
|
public void setType(Integer type) {
|
|
|
this.type = type;// 设置type的值
|
|
|
}
|
|
|
|
|
|
public Integer getCapacity() {
|
|
|
return capacity;// 获取capacity的值
|
|
|
}
|
|
|
|
|
|
public void setCapacity(Integer capacity) {
|
|
|
this.capacity = capacity;// 设置capacity的值
|
|
|
}
|
|
|
|
|
|
public Integer getStoreyId() {
|
|
|
return storeyId;// 获取storeyId的值
|
|
|
}
|
|
|
|
|
|
public void setStoreyId(Integer storeyId) {
|
|
|
this.storeyId = storeyId;// 设置storeyId的值
|
|
|
}
|
|
|
|
|
|
public Integer getBuildingId() {
|
|
|
return buildingId;// 获取buildingId的值
|
|
|
}
|
|
|
|
|
|
public void setBuildingId(Integer buildingId) {
|
|
|
this.buildingId = buildingId;// 设置buildingId的值
|
|
|
}
|
|
|
} |