?? department.java
字號:
package hibernate3.object;
import java.util.HashSet;
import java.util.Set;
/**
* Department entity.
*
* @author MyEclipse Persistence Tools
*/
public class Department implements java.io.Serializable {
// Fields
private Integer partId;
private String name;
private Set employees = new HashSet();
// Constructors
/** default constructor */
public Department() {
}
/** full constructor */
public Department(String name) {
this.name = name;
}
// Property accessors
public Integer getPartId() {
return this.partId;
}
public void setPartId(Integer partId) {
this.partId = partId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
/**
* @return the employees
*/
public Set getEmployees() {
return employees;
}
/**
* @param employees the employees to set
*/
public void setEmployees(Set employees) {
this.employees = employees;
}
public String toString(){
return "Department:["+name+"]";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -