diff --git a/openjpa-project/src/doc/manual/ref_guide_pc.xml b/openjpa-project/src/doc/manual/ref_guide_pc.xml index 9aca361f8..9a65547c9 100644 --- a/openjpa-project/src/doc/manual/ref_guide_pc.xml +++ b/openjpa-project/src/doc/manual/ref_guide_pc.xml @@ -729,7 +729,7 @@ entity identity fields should be of the same type as the related entity's identity. If an embedded identity object is used, you must annotate the relation field with both the @ManyToOne or @OneToOne relation annotation and the -@MappedById annotation. +@MapsId annotation. @@ -805,7 +805,7 @@ public class LineItem { @EmbeddedId LineItemId id; @ManyToOne - @MappedById("orderId") // The value element of the MappedById annotation + @MapsId("orderId") // The value element of the MapsId annotation // must be used to specify the name of the primary // key attribute to which the relationship // corresponds. If the primary key referenced by @@ -831,7 +831,7 @@ In the example above, the LineItem uses an embedded id to represent its primary key. The primary key attribute corresponding to the relationship in the LineItemId must be of the same type as the primary key of the Order. The -MappedById annotation must be applied to the relationship +MapsId annotation must be applied to the relationship field LineItem.order.