Guest User

Untitled

a guest
Feb 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. @RequestMapping(value="/Update/{id}", method = RequestMethod.GET)
  2. public String updateProduct(@PathVariable("id") UUID id, Model model){
  3.  
  4. try{
  5. Product product = DataHelper.getItemById(UUID.fromString(String.valueOf(id)));
  6. if (product != null){
  7. model.addAttribute("product", product);
  8. initModel(model);
  9. }
  10.  
  11. } catch (Exception e){
  12. log.error("Update Hotel", e);
  13. }
  14. return "hoteles";
  15. }
Add Comment
Please, Sign In to add comment