📄 emp.java
字号:
package ms.hibernate;
import java.util.HashSet;
import java.util.Set;
/**
* Emp generated by MyEclipse - Hibernate Tools
*/
public class Emp implements java.io.Serializable {
// Fields
private String empid;
private Dept dept;
private String ename;
private String password;
private String emptype;
private String tel;
private String email;
private String handset;
private String fax;
private String memo;
private Set empRoles = new HashSet(0);
private Set depts = new HashSet(0);
private Set rooms = new HashSet(0);
// Constructors
/** default constructor */
public Emp() {
}
/** minimal constructor */
public Emp(String empid, String ename, String password) {
this.empid = empid;
this.ename = ename;
this.password = password;
}
/** full constructor */
public Emp(String empid, Dept dept, String ename, String password, String emptype, String tel, String email, String handset, String fax, String memo, Set empRoles, Set depts, Set rooms) {
this.empid = empid;
this.dept = dept;
this.ename = ename;
this.password = password;
this.emptype = emptype;
this.tel = tel;
this.email = email;
this.handset = handset;
this.fax = fax;
this.memo = memo;
this.empRoles = empRoles;
this.depts = depts;
this.rooms = rooms;
}
// Property accessors
public String getEmpid() {
return this.empid;
}
public void setEmpid(String empid) {
this.empid = empid;
}
public Dept getDept() {
return this.dept;
}
public void setDept(Dept dept) {
this.dept = dept;
}
public String getEname() {
return this.ename;
}
public void setEname(String ename) {
this.ename = ename;
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
}
public String getEmptype() {
return this.emptype;
}
public void setEmptype(String emptype) {
this.emptype = emptype;
}
public String getTel() {
return this.tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public String getHandset() {
return this.handset;
}
public void setHandset(String handset) {
this.handset = handset;
}
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 getEmpRoles() {
return this.empRoles;
}
public void setEmpRoles(Set empRoles) {
this.empRoles = empRoles;
}
public Set getDepts() {
return this.depts;
}
public void setDepts(Set depts) {
this.depts = depts;
}
public Set getRooms() {
return this.rooms;
}
public void setRooms(Set rooms) {
this.rooms = rooms;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -