Community
Participate
Working Groups
Using the JPA 2.0 spec example 4b in section 2.4.1.3 @Entity public class Person { @Id String ssn; } @Entity public class MedicalHistory { @Id String id; // overriding not allowed // default join column name ("patient_ssn") is overridden @MapsId("id") @JoinColumn(name="FK") @OneToOne Person patient; } I generated tables using EclipseLink and then we were left with one incorrect validation warning on MedicalHistory.id: "Column "id" cannot be resolved" I believe the default column name should be "FK" and we also need a warning if they attempt to change that name using the @Column annotation.
resolved with bug 306777
verified fixed in WTP build I-3.2.0-20100422053324