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.
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 Org extends Entity {
// 定义一个私有的Integer类型的变量id, 用于存储组织的唯一标识符
private Integer id ;
// 使用@Length注解限制name字段的最大长度为100个字符
@Length ( max = 100 )
private String name ;
private Integer type ; //定义一个私有的Integer类型的变量type, 用于表示组织的类型。--类型说明: 1 - 学院; 2 - 系;3 - 专业;4 - 班级
// 定义一个私有的Integer类型的变量gradeId, 用于存储年级ID
private Integer gradeId ;
// 定义一个私有的Integer类型的变量parentId, 用于存储父级组织的ID
private Integer parentId ;
// 使用@Length注解限制remark字段的最大长度为200个字符
@Length ( max = 200 )
private String remark ;
// 获取id的值
public Integer getId ( ) {
return id ;
}
// 设置id的值
public void setId ( Integer id ) {
this . id = id ;
}
// 获取name的值
public String getName ( ) {
return name ;
}
// 设置name的值
public void setName ( String name ) {
this . name = name ;
}
// 获取type的值
public Integer getType ( ) {
return type ;
}
// 设置type的值
public void setType ( Integer type ) {
this . type = type ;
}
// 获取gradeId的值
public Integer getGradeId ( ) {
return gradeId ;
}
// 设置gradeId的值
public void setGradeId ( Integer gradeId ) {
this . gradeId = gradeId ;
}
// 获取parentId的值
public Integer getParentId ( ) {
return parentId ;
}
// 设置parentId的值
public void setParentId ( Integer parentId ) {
this . parentId = parentId ;
}
// 获取remark的值
public String getRemark ( ) {
return remark ;
}
// 设置remark的值
public void setRemark ( String remark ) {
this . remark = remark ;
}
}