package com.ischoolbar.programmer.entity; import org.springframework.stereotype.Component; /** * �༶ʵ�� * @author llq * */ @Component public class Clazz { private Long id; private Long gradeId;//�꼶id private String name; private String remark;//��ע public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public Long getGradeId() { return gradeId; } public void setGradeId(Long gradeId) { this.gradeId = gradeId; } }给这段代码加上注释
时间: 2024-03-04 22:51:39 浏览: 97
/**
* 课程班级实体类
* 表示一个班级的信息,包括班级ID、所属年级ID、班级名称、班级备注等属性
*/
package com.ischoolbar.programmer.entity;
import org.springframework.stereotype.Component;
@Component
public class Clazz {
private Long id; // 班级ID
private Long gradeId; // 所属年级ID
private String name; // 班级名称
private String remark; // 班级备注
// 获取班级ID
public Long getId() {
return id;
}
// 设置班级ID
public void setId(Long id) {
this.id = id;
}
// 获取班级名称
public String getName() {
return name;
}
// 设置班级名称
public void setName(String name) {
this.name = name;
}
// 获取班级备注
public String getRemark() {
return remark;
}
// 设置班级备注
public void setRemark(String remark) {
this.remark = remark;
}
// 获取所属年级ID
public Long getGradeId() {
return gradeId;
}
// 设置所属年级ID
public void setGradeId(Long gradeId) {
this.gradeId = gradeId;
}
}
阅读全文