Package org.sis.ancmessaging.domain

Examples of org.sis.ancmessaging.domain.Gare


  public void setGareGottId(int gareGottId) {
    this.gareGottId = gareGottId;
  }

  public Gare generateGare() {
    Gare gare = new Gare();
    gare.setGareId(gareId);
    gare.setGareName(gareName);
    return gare;
  }
View Full Code Here


      model.addAttribute("healthPosts", healthPostService.getAll());

      model.addAttribute("gareDTO", gareDTO);
      return "gott";
    } else {
      Gare gare = gareDTO.generateGare();
      Gott gott = healthPostService.findGottById(gareDTO.getGareGottId());
      healthPostService.addGareToGott(gare, gott);
      return "redirect:/healthpost/entries?pid=" + gott.getHealthPost().getPostId();
    }
View Full Code Here

  @RequestMapping(value = "createajax", method = RequestMethod.POST)
  public @ResponseBody
  List<GareDTO> createGare(@RequestParam("gareId") int gareId, @RequestParam("gareName") String gareName,
                           @RequestParam("gareGottId") int gareGottId) {
    Gare gare = new Gare();
    gare.setGareName(gareName);
    Gott gott = healthPostService.findGottById(gareGottId);
    healthPostService.addGareToGott(gare, gott);
    List<Gare> gares = healthPostService.getAllGaresForGott(gareGottId);
    List<GareDTO> gareDTOs = new ArrayList<GareDTO>();
    for (Gare g : gares) {
View Full Code Here

TOP

Related Classes of org.sis.ancmessaging.domain.Gare

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.