📄 department.java
字号:
package pp;
import java.io.Serializable;import java.util.Set;import org.apache.commons.lang.builder.ToStringBuilder;
/** @author Hibernate CodeGenerator */
public class Department implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
/** identifier field */
private String id;
/** nullable persistent field */
private String description;
/** nullable persistent field */
private String name;
/** nullable persistent field */
private pp.Employee employee;
/** persistent field */
private Set employees;
/** full constructor */
public Department(String id, String description, String name, pp.Employee employee, Set employees) {
this.id = id;
this.description = description;
this.name = name;
this.employee = employee;
this.employees = employees;
}
/** default constructor */
public Department() {
}
public Department(String id) {
this.id=id;
}
/** minimal constructor */
public Department(String id, Set employees) {
this.id = id;
this.employees = employees;
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public pp.Employee getEmployee() {
return this.employee;
}
public void setEmployee(pp.Employee employee) {
this.employee = employee;
}
public Set getEmployees() {
return this.employees;
}
public void setEmployees(Set employees) {
this.employees = employees;
}
public String toString() {
return new ToStringBuilder(this)
.append("id", getId())
.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -