employeepermcmppk.java

来自「jbuilder9+weblogic8+oracle9开发的客户管理系统。服务器」· Java 代码 · 共 37 行

JAVA
37
字号
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 + =
减小字号Ctrl + -
显示快捷键?