Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 380485 - @JoinTable on a super entity and table per class inheritance maps all sub entities to same join table in the generated DDL
Summary: @JoinTable on a super entity and table per class inheritance maps all sub ent...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 19:25 EDT by Shahim Essaid CLA
Modified: 2022-06-09 10:32 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shahim Essaid CLA 2012-05-23 19:25:06 EDT
Build Identifier: 2.3.2 release and 2.4.0 milestone M19

When a super entity is annotated with @JoinTable and sub entities do not have association overrides, the generated DDL for table per class is incorrect. 

EclipseLink maps all the sub entities to the same join table of the parent entity.

See  http://www.eclipse.org/forums/index.php/t/352983/

A related bug might be https://bugs.eclipse.org/bugs/show_bug.cgi?id=297102



Reproducible: Always

Steps to Reproduce:
See newsgroup link for an example.
Comment 1 Tom Ware CLA 2012-07-04 08:16:16 EDT
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 2 James Sutherland CLA 2013-07-02 14:37:09 EDT
Seems we are generating constraints, but should not be for table per class inheritance as can have multiple target tables.
Comment 3 James Sutherland CLA 2013-07-09 14:14:16 EDT
fixed, no longer generate foreign key constraints for table_per_class

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=389135
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:32:38 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink