Eclipse error on mapping with @EmbeddedId
问题 I have an entity with composite key so I use the @Embeddable and @EmbeddedId annotations. Embeddable class looks like this : @Embeddable public class DitaAdminAccountSkillPK implements Serializable { @ManyToOne @JoinColumn(name = "admin_id") private DitaAdmin admin; @ManyToOne @JoinColumn(name = "account_id") private DitaAccount account; //constructor, getters, setters... } And the entity that uses it : @Entity public class DitaAdminAccountSkill { @EmbeddedId private DitaAdminAccountSkillPK