public static TmpProject generateTmpProject(ProjectDTO inputDTO) { TmpProject tmpProject = new TmpProject(); tmpProject.setProjectName(inputDTO.getProjectName()); // Universal Data Standard: Project Type (2014, 2.4) tmpProject.setContinuumProject(inputDTO.getContinuumProject().getCode()); tmpProject.setProjectType(inputDTO.getProjectType().getCode()); tmpProject.setResidentialAffiliation(inputDTO.getResidentialAffiliation().getCode()); tmpProject.setResProjectId(Integer.parseInt(inputDTO.getResProjectId())); // Universal Data Standard: Project Type (2014, 2.5) tmpProject.setTrackingMethod(inputDTO.getTrackingMethod().getCode()); // Universal Data Standard: Target Population (2014 2.9) tmpProject.setTargetPopulation(inputDTO.getTargetPopulation().getCode()); // Export Standard Fields tmpProject.setDateCreated(inputDTO.getDateCreated()); tmpProject.setDateUpdated(inputDTO.getDateUpdated()); return tmpProject; }