添加课程实体类
Signed-off-by: Chenx221 <chenx221@yandex.com>
This commit is contained in:
parent
c1a9b35059
commit
166b4a6095
48
project2/src/main/java/cyou/chenx221/pojo/course.java
Normal file
48
project2/src/main/java/cyou/chenx221/pojo/course.java
Normal file
@ -0,0 +1,48 @@
|
||||
package cyou.chenx221.pojo;
|
||||
|
||||
public class course {
|
||||
private Integer CourseID; //课程ID
|
||||
private String CourseName; //课程名
|
||||
private String Description; //课程描述
|
||||
|
||||
public course(String courseName, String description) {
|
||||
CourseName = courseName;
|
||||
Description = description;
|
||||
}
|
||||
|
||||
public course() {
|
||||
}
|
||||
|
||||
public Integer getCourseID() {
|
||||
return CourseID;
|
||||
}
|
||||
|
||||
public void setCourseID(Integer courseID) {
|
||||
CourseID = courseID;
|
||||
}
|
||||
|
||||
public String getCourseName() {
|
||||
return CourseName;
|
||||
}
|
||||
|
||||
public void setCourseName(String courseName) {
|
||||
CourseName = courseName;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return Description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
Description = description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "course{" +
|
||||
"CourseID=" + CourseID +
|
||||
", CourseName='" + CourseName + '\'' +
|
||||
", Description='" + Description + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user