📄 employment.java
字号:
package com.hb.base.domain.organization;// Generated 2007/12/03 18:44:52 by Hibernate Tools 3.2.0.b11import com.hb.base.domain.common.Person;import com.hb.core.bean.BaseHibernateDomainBean;import org.apache.commons.lang.builder.EqualsBuilder;import org.apache.commons.lang.builder.HashCodeBuilder;/** * @author 何 貝 * * 雇用关系信息 */public class Employment extends BaseHibernateDomainBean { /***/ private static final long serialVersionUID = 8034063976382693138L; /** 关联个人信息ID */ private String personID; /** 关联员工信息ID */ private String employeeID; /** 雇用开始时间 */ private String startDate; /** 雇用结束时间 */ private String endDate; /** 关联个人信息 */ private Person person; /** 关联员工信息 */ private Employee employee; /** 工资信息 */ private Salary salary; /** 工资信息ID */ private String salaryID; public Employment() { } public Employment(String startDate, String endDate, Person person, Employee employee, Salary salary) { if (person != null) { this.personID = person.getPersonID(); } if (employee != null) { this.employeeID = employee.getEmployeeID(); } this.startDate = startDate; this.endDate = endDate; this.person = person; this.employee = employee; this.salary = salary; if (salary != null) { this.salaryID = salary.getSalaryID(); } } protected String getPersonID() { return this.personID; } protected void setPersonID(String personID) { this.personID = personID; } protected String getEmployeeID() { return this.employeeID; } protected void setEmployeeID(String employeeID) { this.employeeID = employeeID; } public String getStartDate() { return this.startDate; } public void setStartDate(String startDate) { this.startDate = startDate; } public String getEndDate() { return this.endDate; } public void setEndDate(String endDate) { this.endDate = endDate; } public Person getPerson() { return this.person; } public void setPerson(Person person) { if (person != null) { this.personID = person.getPersonID(); } this.person = person; } public Employee getEmployee() { return this.employee; } public void setEmployee(Employee employee) { if (employee != null) { this.employeeID = employee.getEmployeeID(); } this.employee = employee; } public Salary getSalary() { return this.salary; } public void setSalary(Salary salary) { if (salary != null) { this.salaryID = salary.getSalaryID(); } this.salary = salary; } protected String getSalaryID() { return this.salaryID; } protected void setSalaryID(String salaryID) { this.salaryID = salaryID; } /** * @see java.lang.Object#equals(Object) */ public boolean equals(Object object) { if (!(object instanceof Employment)) { return false; } Employment rhs = (Employment) object; return new EqualsBuilder().append(this.employeeID, rhs.employeeID) .append(this.personID, rhs.personID).append(this.startDate, rhs.startDate).append( this.endDate, rhs.endDate).isEquals(); } /** * @see java.lang.Object#hashCode() */ public int hashCode() { return new HashCodeBuilder(1973650513, -775042821).append(this.startDate).append(this.employeeID) .append(this.personID).append(this.endDate).toHashCode(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -