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 135082 - Cant generate RESTful Web Services from entity
Summary: Cant generate RESTful Web Services from entity
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-14 20:55 UTC by hegjon
Modified: 2012-04-13 09:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (36.88 KB, image/png)
2008-05-14 20:57 UTC, hegjon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hegjon 2008-05-14 20:55:53 UTC
How to reproduce:
Create a @MappedSuperclass class with an @Id field.
Create a @Entity class that extends the MappedSuperclass.
Try to "New RESTful Web Services from entity Classes", getting that the @Entity class are not valid.
Comment 1 hegjon 2008-05-14 20:57:15 UTC
Created attachment 61402 [details]
Screenshot
Comment 2 Peter Liu 2008-05-15 20:07:39 UTC
I can't reproduce this issue with 6.1. Are you using 6.0 with an earlier version of the plugin?  I know this issue
should have been fixed with the latest plugin.
Comment 3 hegjon 2008-05-15 20:29:14 UTC
Strange i'm using NetBeans IDE 6.1 (Build 200804211638) with plugin 0.7... 
Comment 4 Peter Liu 2008-05-15 20:44:30 UTC
Let me try this with the 0.7 plugin.

Comment 5 Peter Liu 2008-05-15 21:48:27 UTC
I can reproduce the issue now. The issue has to do with the fact we are not taking into account inherited fields. 
Comment 6 Denis Anisimov 2010-11-01 12:16:08 UTC
It's too risky to fix this for upcoming release. One need to be sure that all
method model usage care about inherited fields/methods.
Should be fixed for next release.
Comment 7 Denis Anisimov 2012-04-12 13:02:15 UTC
web-main#f7ef7a0b2acd
Comment 8 Quality Engineering 2012-04-13 09:50:35 UTC
Integrated into 'main-golden', will be available in build *201204130400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f7ef7a0b2acd
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#135082 - Cant generate RESTful Web Services from entity