Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.0.M2
-
Fix Version/s: 1.0.0.RC1
-
Component/s: None
-
Labels:None
Description
Modifying an entity to so that it contains a compound key:
@RooEntity(identifierType = UserCalendarPK.class) public class UserCalendar { @EmbeddedId protected UserCalendarPK userCalendarPk; }
Still leaves a method like this in the controller:
@RequestMapping(value = "/usercalendar/{id}", method = RequestMethod.GET) public String DefaultController.show(@PathVariable("id") Long id, ModelMap modelMap) { if (id == null) throw new IllegalArgumentException("An Identifier is required"); modelMap.addAttribute("usercalendar", UserCalendar.findUserCalendar(id)); return "usercalendar/show"; }