private void insertIdentityRelatedDocuments(String employeeId) { IdentityRelatedDocuments identityRelatedDocuments = new IdentityRelatedDocuments(); identityRelatedDocuments.setEmployeeId(employeeId); identityRelatedDocumentsDAO.save(identityRelatedDocuments); }
private void updateIdentityRelatedDocuments( IdentityRelatedDocuments identityRelatedDocuments, IdentityRelatedDocumentsUploadFileDTO identityRelatedDocumentsUploadFileDTO) { int mugshot = updateFileTable( identityRelatedDocuments.getMugshot(), identityRelatedDocumentsUploadFileDTO.getMugshotFile()); int twoIdentityPicture = updateFileTable( identityRelatedDocuments.getTwoIdentityPicture(), identityRelatedDocumentsUploadFileDTO.getTwoIdentityPictureFile()); int diploma = updateFileTable( identityRelatedDocuments.getDiploma(), identityRelatedDocumentsUploadFileDTO.getDiplomaFile()); int firstBankBankbook = updateFileTable( identityRelatedDocuments.getFirstBankBankbook(), identityRelatedDocumentsUploadFileDTO.getFirstBankBankbookFile()); int tbbBankbook = updateFileTable( identityRelatedDocuments.getTbbBankbook(), identityRelatedDocumentsUploadFileDTO.getTbbBankbookFile()); int residencePermit = updateFileTable( identityRelatedDocuments.getResidencePermit(), identityRelatedDocumentsUploadFileDTO.getResidencePermitFile()); int surrenders = updateFileTable( identityRelatedDocuments.getSurrenders(), identityRelatedDocumentsUploadFileDTO.getSurrendersFile()); int resignation = updateFileTable( identityRelatedDocuments.getResignation(), identityRelatedDocumentsUploadFileDTO.getResignationFile()); int professionalCertification = updateFileTable( identityRelatedDocuments.getProfessionalCertification(), identityRelatedDocumentsUploadFileDTO.getProfessionalCertificationFile()); int militaryService = updateFileTable( identityRelatedDocuments.getMilitaryService(), identityRelatedDocumentsUploadFileDTO.getMilitaryServiceFile()); int disabled = updateFileTable( identityRelatedDocuments.getDisabled(), identityRelatedDocumentsUploadFileDTO.getDisabledFile()); int otherUnionsAdditionalInsurance = updateFileTable( identityRelatedDocuments.getOtherUnionsAdditionalInsurance(), identityRelatedDocumentsUploadFileDTO.getOtherUnionsAdditionalInsuranceFile()); identityRelatedDocuments.setMugshot(mugshot); identityRelatedDocuments.setTwoIdentityPicture(twoIdentityPicture); identityRelatedDocuments.setDiploma(diploma); identityRelatedDocuments.setFirstBankBankbook(firstBankBankbook); identityRelatedDocuments.setTbbBankbook(tbbBankbook); identityRelatedDocuments.setResidencePermit(residencePermit); identityRelatedDocuments.setSurrenders(surrenders); identityRelatedDocuments.setResignation(resignation); identityRelatedDocuments.setProfessionalCertification(professionalCertification); identityRelatedDocuments.setMilitaryService(militaryService); identityRelatedDocuments.setDisabled(disabled); identityRelatedDocuments.setOtherUnionsAdditionalInsurance(otherUnionsAdditionalInsurance); identityRelatedDocumentsDAO.update(identityRelatedDocuments); }