📄 dept.java
字号:
package ms.hibernate;
import java.util.HashSet;
import java.util.Set;
/**
* Dept generated by MyEclipse - Hibernate Tools
*/
public class Dept implements java.io.Serializable {
// Fields
private Long deptid;
private Emp emp;
private String dname;
private String tel;
private String fax;
private String memo;
private Set emps = new HashSet(0);
private Set rooms = new HashSet(0);
// Constructors
/** default constructor */
public Dept() {
}
/** minimal constructor */
public Dept(String dname) {
this.dname = dname;
}
/** full constructor */
public Dept(Emp emp, String dname, String tel, String fax, String memo, Set emps, Set rooms) {
this.emp = emp;
this.dname = dname;
this.tel = tel;
this.fax = fax;
this.memo = memo;
this.emps = emps;
this.rooms = rooms;
}
// Property accessors
public Long getDeptid() {
return this.deptid;
}
public void setDeptid(Long deptid) {
this.deptid = deptid;
}
public Emp getEmp() {
return this.emp;
}
public void setEmp(Emp emp) {
this.emp = emp;
}
public String getDname() {
return this.dname;
}
public void setDname(String dname) {
this.dname = dname;
}
public String getTel() {
return this.tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getFax() {
return this.fax;
}
public void setFax(String fax) {
this.fax = fax;
}
public String getMemo() {
return this.memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public Set getEmps() {
return this.emps;
}
public void setEmps(Set emps) {
this.emps = emps;
}
public Set getRooms() {
return this.rooms;
}
public void setRooms(Set rooms) {
this.rooms = rooms;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -