Beispiel #1
0
  /**
   * Displays an owner.
   *
   * @param ownerId the ID of the owner to display
   * @return view name
   */
  @RequestMapping(value = "/{ownerId}", method = RequestMethod.GET)
  public String show(@PathVariable("ownerId") int ownerId, Model model) {
    Owner owner = clinic.loadOwner(ownerId);
    model.addAttribute(owner);

    return "owner/Detail";
  }