Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RequestMapping(value="/Update/{id}", method = RequestMethod.GET)
- public String updateProduct(@PathVariable("id") UUID id, Model model){
- try{
- Product product = DataHelper.getItemById(UUID.fromString(String.valueOf(id)));
- if (product != null){
- model.addAttribute("product", product);
- initModel(model);
- }
- } catch (Exception e){
- log.error("Update Hotel", e);
- }
- return "hoteles";
- }
Add Comment
Please, Sign In to add comment