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
1.9 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 Storey extends Entity{// 定义一个名为Storey的类继承自Entity类
private Integer id;// 定义一个私有的Integer类型的变量id用于存储楼层的唯一标识符
@Length(max = 100)// 使用@Length注解限制name字段的最大长度为100个字符
private String name;// 定义一个私有的String类型的变量name用于存储楼层的名称
private Integer buildingId;// 定义一个私有的Integer类型的变量buildingId用于存储所属建筑的ID
@Length(max = 200)// 使用@Length注解限制remark字段的最大长度为200个字符
private String remark;// 定义一个私有的String类型的变量remark用于存储楼层的备注信息
public Integer getId() {// 定义一个公共方法getId用于获取楼层的唯一标识符
return id;
}
public void setId(Integer id) {// 定义一个公共方法setId用于设置楼层的唯一标识符
this.id = id;
}
public String getName() {// 定义一个公共方法getName用于获取楼层的名称
return name;
}
public void setName(String name) {// 定义一个公共方法setName用于设置楼层的名称
this.name = name;
}
public Integer getBuildingId() {// 定义一个公共方法getBuildingId用于获取所属建筑的ID
return buildingId;
}
public void setBuildingId(Integer buildingId) {// 定义一个公共方法setBuildingId用于设置所属建筑的ID
this.buildingId = buildingId;
}
public String getRemark() {// 定义一个公共方法getRemark用于获取楼层的备注信息
return remark;
}
public void setRemark(String remark) {// 定义一个公共方法setRemark用于设置楼层的备注信息
this.remark = remark;
}
}