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 NoticeReceive extends Entity{// 定义一个名为NoticeReceive的类,继承自Entity类 private Integer id; // 定义一个私有的Integer类型的变量id private Integer noticeId;// 定义一个私有的Integer类型的变量noticeId private Integer buildingId;// 定义一个私有的Integer类型的变量buildingId public Integer getId() { return id;// 定义一个公共方法getId,用于获取id的值 } public void setId(Integer id) { this.id = id;// 定义一个公共方法setId,用于设置id的值 } public Integer getNoticeId() { return noticeId;// 定义一个公共方法getNoticeId,用于获取noticeId的值 } public void setNoticeId(Integer noticeId) { this.noticeId = noticeId;// 定义一个公共方法setNoticeId,用于设置noticeId的值 } public Integer getBuildingId() { return buildingId;// 定义一个公共方法getBuildingId,用于获取buildingId的值 } public void setBuildingId(Integer buildingId) { this.buildingId = buildingId;// 定义一个公共方法setBuildingId,用于设置buildingId的值 } }