public boolean equals(Object obj) { if (obj == null) { return false; } ESPlayerClp esPlayer = null; try { esPlayer = (ESPlayerClp) obj; } catch (ClassCastException cce) { return false; } long pk = esPlayer.getPrimaryKey(); if (getPrimaryKey() == pk) { return true; } else { return false; } }
public Object clone() { ESPlayerClp clone = new ESPlayerClp(); clone.setPlayerId(getPlayerId()); clone.setPlayerGroupId(getPlayerGroupId()); clone.setDrOwnerId(getDrOwnerId()); clone.setSponsorId(getSponsorId()); clone.setSubscriberId(getSubscriberId()); clone.setRightHanded(getRightHanded()); clone.setProfessional(getProfessional()); clone.setLastName(getLastName()); clone.setFirstName(getFirstName()); clone.setMiddleName(getMiddleName()); clone.setNickName(getNickName()); clone.setEmail(getEmail()); clone.setDateOfBirth(getDateOfBirth()); clone.setMale(getMale()); clone.setHomeZip(getHomeZip()); clone.setPhone(getPhone()); clone.setHomeCourse(getHomeCourse()); clone.setGhinNo(getGhinNo()); clone.setSubscriptionDate(getSubscriptionDate()); clone.setSubscriptionExpiry(getSubscriptionExpiry()); clone.setCreateDate(getCreateDate()); clone.setModifyDate(getModifyDate()); return clone; }