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 142878

Summary: [65cat] Add support for Join / Inheritance features to "Entity Class From Database" wizard
Product: javaee Reporter: kawazu428 <kawazu428>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: blocker CC: romanmostyka
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description kawazu428 2008-08-05 07:22:49 UTC
[ JDK VERSION : 1.6.0_07 ]

Situation: Using JPA, quite often we do have to deal with building
inherited classes from a database, using JPA InheritanceType.JOINED
and two tables. So far, this most of the time is done manually as,
despite allowing for choosing multiple tables, the "Entity Class From
Database" wizard at the moment is limited to create one Entity class
per database table selected.

Enhancement: Add functionality to, while selecting multiple
tables,...

- ... create a hierarchy of classes (superclass, subclasses) using
these multiple tables,

- ... define how to join the tables to get this done
(@DiscriminatorColumn, @DiscriminatorValue per class),

- ..., optionally, if required, allow for defining
@PrimaryKeyJoinColumn for subclass tables.

Seems a bunch of work I suppose but it would make JPA tooling in
NetBeans _massively_ more useful.
Comment 1 Jiri Rechtacek 2009-10-16 14:14:44 UTC
Reassigned to new owner.
Comment 2 matthias42 2014-04-12 15:07:20 UTC
Wrong product/component.