Example #1
0
 public EducationDto toDto(EducationHistory log) {
   EducationDto dto =
       new EducationDto()
           .withId(log.getId())
           .withVersion(log.getVersion())
           .withCourse(log.getCourse())
           .withSecondaryStatus1(log.getSecondaryLevel1())
           .withSecondaryStatus2(log.getSecondaryLevel2())
           .withStudentId(log.getStudentId())
           .withInstitution(createSchool(log))
           .withEducationalStatus(log.getEducationStatus())
           .withYear(log.getYear())
           .withEducationDate(log.getStartDate())
           .withComments(log.getComments())
           .withPredictedEndDate(log.getPredictedEndDate());
   return dto;
 }