@Override public Object clone() { EmpNotifyEmailClp clone = new EmpNotifyEmailClp(); clone.setEmpNotifyEmailId(getEmpNotifyEmailId()); clone.setEmpId(getEmpId()); clone.setNotifyType(getNotifyType()); clone.setStatus(getStatus()); return clone; }
@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; } }