forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCourse.java
More file actions
121 lines (92 loc) · 2.43 KB
/
Course.java
File metadata and controls
121 lines (92 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package com.jwy.dto;
public class Course implements java.io.Serializable {
private Integer id; //课程编号,自动增涨主键
private String name; //课程名称
private String schooltime; //上课时间
private String addr; //上课地点
private Short credit; //课程学分
private String courseInfo; //课程介绍
private String teacherName; //讲都老师姓名
private String teacherInfo; //老师介绍
private Boolean isFinish; //是否可选
private Integer specialtyId;//所属专业编号
// Constructors
/** default constructor */
public Course() {
}
/** full constructor */
public Course(String name, String schooltime, String addr, Short credit,
String courseInfo, String teacherName, String teacherInfo,
Boolean isFinish, Integer specialtyId) {
this.name = name;
this.schooltime = schooltime;
this.addr = addr;
this.credit = credit;
this.courseInfo = courseInfo;
this.teacherName = teacherName;
this.teacherInfo = teacherInfo;
this.isFinish = isFinish;
this.specialtyId = specialtyId;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getSchooltime() {
return this.schooltime;
}
public void setSchooltime(String schooltime) {
this.schooltime = schooltime;
}
public String getAddr() {
return this.addr;
}
public void setAddr(String addr) {
this.addr = addr;
}
public Short getCredit() {
return this.credit;
}
public void setCredit(Short credit) {
this.credit = credit;
}
public String getCourseInfo() {
return this.courseInfo;
}
public void setCourseInfo(String courseInfo) {
this.courseInfo = courseInfo;
}
public String getTeacherName() {
return this.teacherName;
}
public void setTeacherName(String teacherName) {
this.teacherName = teacherName;
}
public String getTeacherInfo() {
return this.teacherInfo;
}
public void setTeacherInfo(String teacherInfo) {
this.teacherInfo = teacherInfo;
}
public Boolean getIsFinish() {
return this.isFinish;
}
public void setIsFinish(Boolean isFinish) {
this.isFinish = isFinish;
}
public Integer getSpecialtyId() {
return this.specialtyId;
}
public void setSpecialtyId(Integer specialtyId) {
this.specialtyId = specialtyId;
}
}