You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fornax-Platform
Hi
We need to generate the @ResponseBody annotation in generated methods
corresponding to our resources and I am trying to figure out how to
alter the model.btdesign to explicitly generate one. Any ideas would
be highly appreciated.
@RequestMapping(value = "/abc/def/${entityId}", method =
RequestMethod.PUT)
public SomeVo addUpdateMyInfo(@RequestBody SomeVo syncInfo) {
SomeVo result = myService.addUpdateMyInfo(syncInfo);
return result;
}
Thanks
Parul
Patrik Nordwall
unread,
Mar 10, 2012, 9:41:42 AM3/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fornax-...@googlegroups.com
If its only a few places it's probably easiest to implement those resource methods manually, and add whatever annotations you need. Then you define them like this in model.btdesign:
Resource SomeResource {
inject @MyService
addUpdateMyInfo(@SomeVo syncInfo) PUT path="/rest/def/${entityId}";
}
If it's a more general thing that you wan't at many places you can probably tweak the generation templates with SpecialCases.xpt as described in the Developer's Guide. The template is tempates/rest/Resource.xpt