|
|
package com.yanzhen.entity;
|
|
|
|
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
import com.yanzhen.utils.Entity;
|
|
|
|
|
|
|
|
|
|
|
|
public class DormitorySet extends Entity{// 定义一个名为DormitorySet的类,继承自Entity类
|
|
|
|
|
|
|
|
|
private Integer id;// 定义一个私有的Integer类型的id变量
|
|
|
|
|
|
|
|
|
@Length(max = 50)// 定义一个私有的String类型的prefix变量,并使用@Length注解限制其最大长度为50
|
|
|
private String prefix;
|
|
|
|
|
|
|
|
|
private Integer start;// 定义一个私有的Integer类型的start变量
|
|
|
|
|
|
|
|
|
private Integer end;// 定义一个私有的Integer类型的end变量
|
|
|
|
|
|
|
|
|
private Integer buildingId;// 定义一个私有的Integer类型的buildingId变量
|
|
|
|
|
|
|
|
|
private Integer storeyId;// 定义一个私有的Integer类型的storeyId变量
|
|
|
|
|
|
|
|
|
private Integer capacity;// 定义一个私有的Integer类型的capacity变量
|
|
|
|
|
|
|
|
|
public Integer getId() {
|
|
|
return id;// 获取id的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public void setId(Integer id) {
|
|
|
this.id = id;// 设置id的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public String getPrefix() {
|
|
|
return prefix;// 获取prefix的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public void setPrefix(String prefix) {
|
|
|
this.prefix = prefix;// 设置prefix的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public Integer getStart() {
|
|
|
return start;// 获取start的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public void setStart(Integer start) {
|
|
|
this.start = start;// 设置start的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public Integer getEnd() {
|
|
|
return end;// 获取end的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public void setEnd(Integer end) {
|
|
|
this.end = end;// 设置end的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public Integer getBuildingId() {
|
|
|
return buildingId;// 获取buildingId的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public void setBuildingId(Integer buildingId) {
|
|
|
this.buildingId = buildingId;// 设置buildingId的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public Integer getStoreyId() {
|
|
|
return storeyId;// 获取storeyId的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public void setStoreyId(Integer storeyId) {
|
|
|
this.storeyId = storeyId;// 设置storeyId的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public Integer getCapacity() {
|
|
|
return capacity;// 获取capacity的值
|
|
|
}
|
|
|
|
|
|
|
|
|
public void setCapacity(Integer capacity) {
|
|
|
this.capacity = capacity;// 设置capacity的值
|
|
|
}
|
|
|
} |