JPA EclipseLink oneToMany Derived Ids Fail
问题 Hello I'm trying to make an example of persistence of a OneToMany relationship in which I get the following error: Exception Description: Invalid composite primary key specification. The names of the primary key fields or properties in the primary key class [entitys.OrderItemPK] and those of the entity bean class [class entitys.OrderItem] must correspond and their types must be the same. Also, ensure that you have specified ID elements for the corresponding attributes in XML and/or an @Id on