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.
127 lines
2.6 KiB
127 lines
2.6 KiB
package com.example.entity;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
/**
|
|
* 课程实体类
|
|
* 不依赖Spring Boot,使用普通Java类实现
|
|
*/
|
|
public class Course {
|
|
private Long id;
|
|
private String courseCode;
|
|
private String courseName;
|
|
private Double credit;
|
|
private String teacher;
|
|
private String department;
|
|
private Integer capacity;
|
|
private Integer enrolled;
|
|
private String classTime;
|
|
private String classRoom;
|
|
private String courseType;
|
|
private String semester;
|
|
private LocalDateTime createTime;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getCourseCode() {
|
|
return courseCode;
|
|
}
|
|
|
|
public void setCourseCode(String courseCode) {
|
|
this.courseCode = courseCode;
|
|
}
|
|
|
|
public String getCourseName() {
|
|
return courseName;
|
|
}
|
|
|
|
public void setCourseName(String courseName) {
|
|
this.courseName = courseName;
|
|
}
|
|
|
|
public Double getCredit() {
|
|
return credit;
|
|
}
|
|
|
|
public void setCredit(Double credit) {
|
|
this.credit = credit;
|
|
}
|
|
|
|
public String getTeacher() {
|
|
return teacher;
|
|
}
|
|
|
|
public void setTeacher(String teacher) {
|
|
this.teacher = teacher;
|
|
}
|
|
|
|
public String getDepartment() {
|
|
return department;
|
|
}
|
|
|
|
public void setDepartment(String department) {
|
|
this.department = department;
|
|
}
|
|
|
|
public Integer getCapacity() {
|
|
return capacity;
|
|
}
|
|
|
|
public void setCapacity(Integer capacity) {
|
|
this.capacity = capacity;
|
|
}
|
|
|
|
public Integer getEnrolled() {
|
|
return enrolled;
|
|
}
|
|
|
|
public void setEnrolled(Integer enrolled) {
|
|
this.enrolled = enrolled;
|
|
}
|
|
|
|
public String getClassTime() {
|
|
return classTime;
|
|
}
|
|
|
|
public void setClassTime(String classTime) {
|
|
this.classTime = classTime;
|
|
}
|
|
|
|
public String getClassRoom() {
|
|
return classRoom;
|
|
}
|
|
|
|
public void setClassRoom(String classRoom) {
|
|
this.classRoom = classRoom;
|
|
}
|
|
|
|
public String getCourseType() {
|
|
return courseType;
|
|
}
|
|
|
|
public void setCourseType(String courseType) {
|
|
this.courseType = courseType;
|
|
}
|
|
|
|
public String getSemester() {
|
|
return semester;
|
|
}
|
|
|
|
public void setSemester(String semester) {
|
|
this.semester = semester;
|
|
}
|
|
|
|
public LocalDateTime getCreateTime() {
|
|
return createTime;
|
|
}
|
|
|
|
public void setCreateTime(LocalDateTime createTime) {
|
|
this.createTime = createTime;
|
|
}
|
|
}
|