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.

96 lines
2.8 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;
import java.util.List;
public class Selection extends Entity{// 定义一个名为Selection的类继承自Entity类
private Integer id; // 定义一个私有的Integer类型的变量id
@Length(max = 100) // 定义一个私有的String类型的变量name并设置其最大长度为100
private String name;
private Date startTime;// 定义一个私有的Date类型的变量startTime
private Date endTime;// 定义一个私有的Date类型的变量endTime
@Length(max = 100)// 定义一个私有的String类型的变量remark并设置其最大长度为100
private String remark;
private List<Integer> clazzIds; // 定义一个私有的List<Integer>类型的变量clazzIds
private List<Org> clazzes;// 定义一个私有的List<Org>类型的变量clazzes
public Integer getId() {// 定义一个公共方法getId用于获取id的值
return id;
}
public void setId(Integer id) { // 定义一个公共方法setId用于设置id的值
this.id = id;
}
public String getName() { // 定义一个公共方法getName用于获取name的值
return name;
}
public void setName(String name) { // 定义一个公共方法setName用于设置name的值
this.name = name;
}
public Date getStartTime() { // 定义一个公共方法getStartTime用于获取startTime的值
return startTime;
}
public void setStartTime(Date startTime) {// 定义一个公共方法setStartTime用于设置startTime的值
this.startTime = startTime;
}
public Date getEndTime() {// 定义一个公共方法getEndTime用于获取endTime的值
return endTime;
}
public void setEndTime(Date endTime) {// 定义一个公共方法setEndTime用于设置endTime的值
this.endTime = endTime;
}
public String getRemark() {// 定义一个公共方法getRemark用于获取remark的值
return remark;
}
public void setRemark(String remark) {// 定义一个公共方法setRemark用于设置remark的值
this.remark = remark;
}
public List<Integer> getClazzIds() { // 定义一个公共方法getClazzIds用于获取clazzIds的值
return clazzIds;
}
public void setClazzIds(List<Integer> clazzIds) {// 定义一个公共方法setClazzIds用于设置clazzIds的值
this.clazzIds = clazzIds;
}
public List<Org> getClazzes() { // 定义一个公共方法getClazzes用于获取clazzes的值
return clazzes;
}
public void setClazzes(List<Org> clazzes) {// 定义一个公共方法setClazzes用于设置clazzes的值
this.clazzes = clazzes;
}
}