This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 100669 - REST code generation from entity classes
Summary: REST code generation from entity classes
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
Depends on: 100701 100706
Blocks: 101685
  Show dependency tree
 
Reported: 2007-04-11 21:10 UTC by Srividhya Narayanan
Modified: 2008-01-20 11:49 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srividhya Narayanan 2007-04-11 21:10:00 UTC
Container->containee pattern needs to be applied to provide REST bean code
generation starting from entity classes.
Comment 1 Nam Nguyen 2007-04-11 23:01:13 UTC
- Generate JAXB converter class wrapping each entity and replacing references
with either container or reference.
- Generate one container resource bean class and one item resource class for
each entity.  Container resource needs to have HTTP methods GET/POST/PUT.  Item
resource needs to have HTTP methods GET/PUT/DELETE.  The methods on item
resource need to support all sub-resources.

Comment 2 Srividhya Narayanan 2007-04-12 22:23:42 UTC
- Convertor work is complete
- CRUD works for all cases and improvement is being done to take the
relationship into consideration.
Comment 3 Peter Liu 2007-04-12 22:26:03 UTC
The "R" (Read) operation is complete.
Comment 4 Peter Liu 2007-04-12 22:27:38 UTC
The "R" (Read) operation is complete.
Comment 5 Peter Liu 2007-04-12 22:36:27 UTC
This task also includes generating Java doc on the generated code.
Comment 6 Srividhya Narayanan 2007-04-19 07:00:54 UTC
feature added to M9
Comment 7 Lukas Jungmann 2008-01-20 11:49:39 UTC
v.