Source:
public CertifiedProductDTO update(CertifiedProductDTO dto) throws EntityRetrievalException{ CertifiedProductEntity entity = getEntityById(dto.getId()); entity.setAcbCertificationId(dto.getAcbCertificationId()); entity.setProductCode(dto.getProductCode()); entity.setVersionCode(dto.getVersionCode()); entity.setIcsCode(dto.getIcsCode()); entity.setAdditionalSoftwareCode(dto.getAdditionalSoftwareCode()); entity.setCertifiedDateCode(dto.getCertifiedDateCode()); entity.setPracticeTypeId(dto.getPracticeTypeId()); entity.setProductClassificationTypeId(dto.getProductClassificationTypeId()); entity.setReportFileLocation(dto.getReportFileLocation()); entity.setSedReportFileLocation(dto.getSedReportFileLocation()); entity.setSedIntendedUserDescription(dto.getSedIntendedUserDescription()); entity.setSedTestingEnd(dto.getSedTestingEnd()); entity.setProductAdditionalSoftware(dto.getProductAdditionalSoftware()); entity.setTestingLabId(dto.getTestingLabId()); entity.setOtherAcb(dto.getOtherAcb()); entity.setIcs(dto.getIcs()); entity.setSedTesting(dto.getSedTesting()); entity.setQmsTesting(dto.getQmsTesting()); entity.setAccessibilityCertified(dto.getAccessibilityCertified()); entity.setTransparencyAttestationUrl(dto.getTransparencyAttestationUrl()); entity.setCertificationBodyId(dto.getCertificationBodyId()); entity.setCertificationEditionId(dto.getCertificationEditionId()); entity.setCertificationStatusId(dto.getCertificationStatusId()); entity.setProductVersionId(dto.getProductVersionId()); entity.setMeaningfulUseUsers(dto.getMeaningfulUseUsers()); entity.setLastModifiedDate(new Date()); entity.setLastModifiedUser(Util.getCurrentUser().getId()); update(entity); return new CertifiedProductDTO(entity); }

Target:
public CertifiedProductDTO update(CertifiedProductDTO dto) throws EntityRetrievalException{ CertifiedProductEntity entity = getEntityById(dto.getId()); entity.setAcbCertificationId(dto.getAcbCertificationId()); entity.setProductCode(dto.getProductCode()); entity.setVersionCode(dto.getVersionCode()); entity.setIcsCode(dto.getIcsCode()); entity.setAdditionalSoftwareCode(dto.getAdditionalSoftwareCode()); entity.setCertifiedDateCode(dto.getCertifiedDateCode()); entity.setPracticeTypeId(dto.getPracticeTypeId()); entity.setProductClassificationTypeId(dto.getProductClassificationTypeId()); entity.setReportFileLocation(dto.getReportFileLocation()); entity.setSedReportFileLocation(dto.getSedReportFileLocation()); entity.setSedIntendedUserDescription(dto.getSedIntendedUserDescription()); entity.setSedTestingEnd(dto.getSedTestingEnd()); entity.setProductAdditionalSoftware(dto.getProductAdditionalSoftware()); entity.setTestingLabId(dto.getTestingLabId()); entity.setOtherAcb(dto.getOtherAcb()); entity.setIcs(dto.getIcs()); entity.setSedTesting(dto.getSedTesting()); entity.setQmsTesting(dto.getQmsTesting()); entity.setAccessibilityCertified(dto.getAccessibilityCertified()); entity.setTransparencyAttestationUrl(dto.getTransparencyAttestationUrl()); entity.setCertificationBodyId(dto.getCertificationBodyId()); entity.setCertificationEditionId(dto.getCertificationEditionId()); entity.setCertificationStatusId(dto.getCertificationStatusId()); entity.setProductVersionId(dto.getProductVersionId()); entity.setLastModifiedDate(new Date()); entity.setLastModifiedUser(Util.getCurrentUser().getId()); update(entity); return new CertifiedProductDTO(entity); }