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 180026 - JSF Pages From Entity Classes not working when using inheritance between JPA entities
Summary: JSF Pages From Entity Classes not working when using inheritance between JPA ...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexey Butenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-30 14:07 UTC by dheffelfinger
Modified: 2016-07-07 08:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Sample Project illustrating the issue (38.53 KB, application/zip)
2010-01-30 14:07 UTC, dheffelfinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dheffelfinger 2010-01-30 14:07:32 UTC
Created attachment 93671 [details]
Sample Project illustrating the issue

Create two JPA entities via the NetBeans wizard, then modify one to be child class of the other. NetBeans by default generates an ID attribute for each entity.

If the id attribute is not deleted from the child class, then the "Generate JSF Pages from Entity Classes" generates an invalid JSF create page for the child class, Facelets complains about a duplicate component id.
Comment 1 Alexey Butenko 2010-05-25 08:16:55 UTC
It sounds more like an enhancement since inheritance of the classes is not checked.
Comment 2 Martin Balin 2016-07-07 08:54:51 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss