@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

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

    MarcBatchUploadClp marcBatchUpload = (MarcBatchUploadClp) obj;

    long primaryKey = marcBatchUpload.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }
  @Override
  public Object clone() {
    MarcBatchUploadClp clone = new MarcBatchUploadClp();

    clone.setMarcBatchUploadId(getMarcBatchUploadId());
    clone.setGroupId(getGroupId());
    clone.setCompanyId(getCompanyId());
    clone.setCreateBy(getCreateBy());
    clone.setCreatedDate(getCreatedDate());
    clone.setProcessed(getProcessed());
    clone.setImportDate(getImportDate());
    clone.setImportByUserId(getImportByUserId());
    clone.setPartialImport(getPartialImport());
    clone.setFileCount(getFileCount());
    clone.setDescription(getDescription());
    clone.setRecordCount(getRecordCount());

    return clone;
  }