📄 employeepermcmppk.java
字号:
package testejb;
import java.io.*;
public class EmployeePermcmpPK
implements Serializable {
public String employeeId;
public String permCode;
public EmployeePermcmpPK() {
}
public EmployeePermcmpPK(String employeeId, String permCode) {
this.employeeId = employeeId;
this.permCode = permCode;
}
public boolean equals(Object obj) {
if (obj != null) {
if (this.getClass().equals(obj.getClass())) {
EmployeePermcmpPK that = (EmployeePermcmpPK) obj;
return ( ( (this.employeeId == null) && (that.employeeId == null)) ||
(this.employeeId != null &&
this.employeeId.equals(that.employeeId))) &&
( ( (this.permCode == null) && (that.permCode == null)) ||
(this.permCode != null && this.permCode.equals(that.permCode)));
}
}
return false;
}
public int hashCode() {
return (employeeId + permCode).hashCode();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -