course.java
来自「使用hibernate」· Java 代码 · 共 85 行
JAVA
85 行
package com.hibernate.bean;
import java.util.HashSet;
import java.util.Set;
/**
* Course generated by MyEclipse - Hibernate Tools
*/
public class Course implements java.io.Serializable {
// Fields
private Long cno;
private String cname;
private String cdept;
private Set studies = new HashSet(0);
// Constructors
/** default constructor */
public Course() {
}
/** minimal constructor */
public Course(Long cno) {
this.cno = cno;
}
/** full constructor */
public Course(Long cno, String cname, String cdept, Set studies) {
this.cno = cno;
this.cname = cname;
this.cdept = cdept;
this.studies = studies;
}
// Property accessors
public Long getCno() {
return this.cno;
}
public void setCno(Long cno) {
this.cno = cno;
}
public String getCname() {
return this.cname;
}
public void setCname(String cname) {
this.cname = cname;
}
public String getCdept() {
return this.cdept;
}
public void setCdept(String cdept) {
this.cdept = cdept;
}
public Set getStudies() {
return this.studies;
}
public void setStudies(Set studies) {
this.studies = studies;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?