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 109699

Summary: Support for inheritance in New -> Entity Class... wizard
Product: javaee Reporter: rpatel <rpatel>
Component: PersistenceAssignee: Andrei Badea <abadea>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description rpatel 2007-07-13 23:12:00 UTC
Hello,

It would be a big help to those who implement real world JPA applications if NetBeans were to add support for Entity
inheritance to the Entity Class... wizard. Currently one has two choices in implementing the boiler plate for inherited
entity:

1) Either modify the NetBeans generated skeleton code produced by New -> Entity Class... wizard to remove any code
generated for primary key, and to reimplement the semantics for hashcode(), equals(), and toString() methods.

2) Or not use NetBeans at all and write all the boiler plate for inherited entity

Personally, I think 2) is better than 1). Ideal would be support of this use case by IDE. Do let me know if I can be of
further help.

Thanks and regards,
Rima.
Comment 1 Erno Mononen 2007-07-16 15:48:45 UTC
I think it is a good idea to add support for inheritance in the wizard, thanks for bringing this up. Unfortunately it 
is too late to do that for 6.0 though, so I'm setting the TM to future.
Comment 2 Martin Balin 2016-07-07 08:53:12 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