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 - [65cat] Add support for Join / Inheritance features to "Entity Class From Database" wizard
Summary: [65cat] Add support for Join / Inheritance features to "Entity Class From Dat...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker with 1 vote (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-05 07:22 UTC by kawazu428
Modified: 2014-04-12 15:07 UTC (History)
1 user (show)

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 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.