Community
Participate
Working Groups
Using the JPA 2.0 spec example 1b in section 2.4.1.3 @Entity public class Employee { @Id long empId; String name; ... } @Embeddable public class DependentId { String name; long empPK; // corresponds to PK type of Employee } @Entity public class Dependent { @EmbeddedId DependentId id; ... // id attribute mapped by join column default ("emp_empId") @MapsId("empPK") // maps empPK attribute of embedded id @ManyToOne Employee emp; } I generated tables using EclipseLink and then we were left with one incorrect validation warning on Dependent.id: "In implied attribute override "empPK", column "empPK" cannot be resolved" According to the spec in the EmbeddedId annotation section we should not have an implied attribute override in this case: If the entity has a derived primary key, the AttributeOverride annotation may only be used to override those attributes of the embedded id that do not correspond to the relationship to the parent entity.
resolved with bug 306777
verified fixed in WTP build I-3.2.0-20100422053324