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 - Support for inheritance in New -> Entity Class... wizard
Summary: Support for inheritance in New -> Entity Class... wizard
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-13 23:12 UTC by rpatel
Modified: 2016-07-07 08:53 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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