@RequestMapping(value = "/waterNow.do")
  ModelAndView waterNow(@RequestParam("id") long id) {
    Flower flower = flowerService.find(id);
    flower = flowerService.water(flower, 0.5d);

    ModelAndView model = new ModelAndView("flowerDetail");
    model.addObject(flower);
    return model;
  }
  @RequestMapping(value = "/flowerDetail.do")
  ModelAndView getFlowerDetail(@RequestParam("id") long id) {
    Flower flower = flowerService.find(id);

    ModelAndView model = new ModelAndView("flowerDetail");
    model.addObject(flower);
    return model;
  }
  @RequestMapping(value = "/searchFlowers.do")
  ModelAndView getAllFlowers() {
    List<Flower> flowers = flowerService.getAllFlowers();

    ModelAndView model = new ModelAndView("listFlowers");
    model.addObject(flowers);
    return model;
  }