Example #1
0
  @Override
  public Object clone() {
    EmpNotifyEmailClp clone = new EmpNotifyEmailClp();

    clone.setEmpNotifyEmailId(getEmpNotifyEmailId());
    clone.setEmpId(getEmpId());
    clone.setNotifyType(getNotifyType());
    clone.setStatus(getStatus());

    return clone;
  }
Example #2
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (!(obj instanceof EmpNotifyEmailClp)) {
      return false;
    }

    EmpNotifyEmailClp empNotifyEmail = (EmpNotifyEmailClp) obj;

    long primaryKey = empNotifyEmail.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }