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.
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.
Created attachment 61402 [details] Screenshot
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.
Strange i'm using NetBeans IDE 6.1 (Build 200804211638) with plugin 0.7...
Let me try this with the 0.7 plugin.
I can reproduce the issue now. The issue has to do with the fact we are not taking into account inherited fields.
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.
web-main#f7ef7a0b2acd
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