Пример #1
0
  @RequestMapping(value = "/profile/education/{id}", method = RequestMethod.GET)
  public ModelAndView editEducation(@PathVariable Long id, Locale locale) {

    Education addEducation = profileService.retrieveEducations(id, locale);
    ModelAndView modelAndView = constructModelAndView(addEducation, locale);
    modelAndView.addObject(COMMAND_EDUCATION, addEducation);

    return modelAndView;
  }
Пример #2
0
 private Object constructAllEducations(Locale locale) {
   List<Education> result = profileService.retrieveEducations(locale);
   return result;
 }