diff --git a/project2/src/main/java/cyou/chenx221/pojo/course.java b/project2/src/main/java/cyou/chenx221/pojo/course.java new file mode 100644 index 0000000..8f212f4 --- /dev/null +++ b/project2/src/main/java/cyou/chenx221/pojo/course.java @@ -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 + '\'' + + '}'; + } +}