@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; }
@Override public void setModelAttributes(Map<String, Object> attributes) { Long marcBatchUploadId = (Long) attributes.get("marcBatchUploadId"); if (marcBatchUploadId != null) { setMarcBatchUploadId(marcBatchUploadId); } Long groupId = (Long) attributes.get("groupId"); if (groupId != null) { setGroupId(groupId); } Long companyId = (Long) attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Long createBy = (Long) attributes.get("createBy"); if (createBy != null) { setCreateBy(createBy); } Date createdDate = (Date) attributes.get("createdDate"); if (createdDate != null) { setCreatedDate(createdDate); } Boolean processed = (Boolean) attributes.get("processed"); if (processed != null) { setProcessed(processed); } Date importDate = (Date) attributes.get("importDate"); if (importDate != null) { setImportDate(importDate); } Long importByUserId = (Long) attributes.get("importByUserId"); if (importByUserId != null) { setImportByUserId(importByUserId); } Boolean partialImport = (Boolean) attributes.get("partialImport"); if (partialImport != null) { setPartialImport(partialImport); } Integer fileCount = (Integer) attributes.get("fileCount"); if (fileCount != null) { setFileCount(fileCount); } String description = (String) attributes.get("description"); if (description != null) { setDescription(description); } Integer recordCount = (Integer) attributes.get("recordCount"); if (recordCount != null) { setRecordCount(recordCount); } }