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

Summary: JSF Pages From Entity Classes not working when using inheritance between JPA entities
Product: javaee Reporter: dheffelfinger <dheffelfinger>
Component: JSFAssignee: Alexey Butenko <alexeybutenko>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Sample Project illustrating the issue

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