Community
Participate
Working Groups
Created attachment 238894 [details] Test case as Maven project. Define the following three entities. @Entity public class Person { @Id long id; String name; } @Entity @IdClass(MedicalProcedure.MedicalHistoryId.class) @Inheritance(strategy = InheritanceType.JOINED) public class MedicalProcedure { public static class MedicalHistoryId implements Serializable { long patient; long id; } @Id @ManyToOne Person patient; @Id long id; } @Entity public class FailedMedicalProcedure extends MedicalProcedure { String reason; } EclipseLink maps FailedMedicalProcedure to a table with the following definition (PostgreSQL 9.2.1): CREATE TABLE failedmedicalprocedure ( id bigint NOT NULL, reason character varying(255), CONSTRAINT failedmedicalprocedure_pkey PRIMARY KEY (id) ) Obviously, the patient (or, rather, patient_id) column is missing. A test case is attached as Maven project.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink