コード例 #1
0
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    LmisViewStaffRootOrgClp lmisViewStaffRootOrg = null;

    try {
      lmisViewStaffRootOrg = (LmisViewStaffRootOrgClp) obj;
    } catch (ClassCastException cce) {
      return false;
    }

    Integer pk = lmisViewStaffRootOrg.getPrimaryKey();

    if (getPrimaryKey().equals(pk)) {
      return true;
    } else {
      return false;
    }
  }
コード例 #2
0
  public Object clone() {
    LmisViewStaffRootOrgClp clone = new LmisViewStaffRootOrgClp();

    clone.setUser_id(getUser_id());
    clone.setRootId(getRootId());
    clone.setOrgId(getOrgId());
    clone.setBodId(getBodId());
    clone.setScreenName(getScreenName());
    clone.setEmailAddress(getEmailAddress());

    return clone;
  }