📄 course.java
字号:
package com.hibernate;
import java.util.HashSet;
import java.util.Set;
/**
* Course generated by MyEclipse - Hibernate Tools
*/
public class Course implements java.io.Serializable {
// Fields
private Integer cid;
private String name;
private String time;
private String location;
private Integer numOfSeats;
private Integer numOfStudents;
private String teacher;
// private Integer tid;
private Teacher tea;
private Set studentCourses = new HashSet(0);
// Constructors
/** default constructor */
public Course() {
}
/** minimal constructor */
public Course(String name, String time, String location, Integer numOfSeats, Integer numOfStudents, String teacher) {
this.name = name;
this.time = time;
this.location = location;
this.numOfSeats = numOfSeats;
this.numOfStudents = numOfStudents;
this.teacher = teacher;
}
/** full constructor */
public Course(String name, String time, String location, Integer numOfSeats, Integer numOfStudents, String teacher, Set studentCourses) {
this.name = name;
this.time = time;
this.location = location;
this.numOfSeats = numOfSeats;
this.numOfStudents = numOfStudents;
this.teacher = teacher;
this.studentCourses = studentCourses;
}
// Property accessors
public Course(String string, String string2, String string3, int i, int j, String string4, Object object) {
// TODO Auto-generated constructor stub
}
public Integer getCid() {
return this.cid;
}
public void setCid(Integer cid) {
this.cid = cid;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getTime() {
return this.time;
}
public void setTime(String time) {
this.time = time;
}
public String getLocation() {
return this.location;
}
public void setLocation(String location) {
this.location = location;
}
public Integer getNumOfSeats() {
return this.numOfSeats;
}
public void setNumOfSeats(Integer numOfSeats) {
this.numOfSeats = numOfSeats;
}
public Integer getNumOfStudents() {
return this.numOfStudents;
}
public void setNumOfStudents(Integer numOfStudents) {
this.numOfStudents = numOfStudents;
}
public String getTeacher() {
return this.teacher;
}
public void setTeacher(String teacher) {
this.teacher = teacher;
}
public Set getStudentCourses() {
return this.studentCourses;
}
public void setStudentCourses(Set studentCourses) {
this.studentCourses = studentCourses;
}
public Teacher getTea() {
return tea;
}
public void setTea(Teacher tea) {
this.tea = tea;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -