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 Grade extends Entity { // 定义一个名为Grade的类, 继承自Entity类
private Integer id ; // 定义一个私有的Integer类型的变量id
@Length ( max = 100 ) // 使用@Length注解限制name字段的最大长度为100个字符
private String name ;
public Integer getId ( ) {
return id ; // 定义一个公共方法getId, 用于获取id的值
}
public void setId ( Integer id ) {
this . id = id ; // 定义一个公共方法setId, 用于设置id的值
}
public String getName ( ) {
return name ; // 定义一个公共方法getName, 用于获取name的值
}
public void setName ( String name ) {
this . name = name ; // 定义一个公共方法setName, 用于设置name的值
}
}