Sorry if this is very basic, but I'm very new to Roo. I have a controller that was created by Roo. I want to customize to return extra objects. I see this method in AccountController_Roo_Controller:
I would like to add a couple extra objects to the Model at this level. Where should I do this? Should I edit this method here?Code:@RequestMapping(value = "/{id}", produces = "text/html") public String AccountController.show(@PathVariable("id") Long id, Model uiModel) { addDateTimeFormatPatterns(uiModel); uiModel.addAttribute("account", Account.findAccount(id)); uiModel.addAttribute("itemId", id); return "accounts/show"; }
Thanks,
Andres


Reply With Quote
