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.
ssgl/zsq/SelectionDormitory.java

46 lines
1.5 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; // 定义包名表示该类属于com.yanzhen.entity包
import javax.validation.constraints.NotNull; // 导入NotNull注解用于字段验证
import org.hibernate.validator.constraints.Length; // 导入Length注解用于字符串长度验证
import com.yanzhen.utils.Entity; // 导入Entity类SelectionDormitory类继承自Entity类
import java.util.Date; // 导入Date类用于日期处理
public class SelectionDormitory extends Entity{// 定义一个名为SelectionDormitory的类继承自Entity类
private Integer id;// 定义一个私有的Integer类型的变量id
private Integer dormitoryId;// 定义一个私有的Integer类型的变量dormitoryId
private Integer clazzId;// 定义一个私有的Integer类型的变量clazzId
public Integer getId() {// 定义一个公共方法getId用于获取id的值
return id;
}
public void setId(Integer id) {// 定义一个公共方法setId用于设置id的值
this.id = id;
}
public Integer getDormitoryId() {// 定义一个公共方法getDormitoryId用于获取dormitoryId的值
return dormitoryId;
}
public void setDormitoryId(Integer dormitoryId) {// 定义一个公共方法setDormitoryId用于设置dormitoryId的值
this.dormitoryId = dormitoryId;
}
public Integer getClazzId() {// 定义一个公共方法getClazzId用于获取clazzId的值
return clazzId;
}
public void setClazzId(Integer clazzId) {// 定义一个公共方法setClazzId用于设置clazzId的值
this.clazzId = clazzId;
}
}