OPENJPA-2509. Updated doc references from @MappedById to @MapsId.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1598334 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin W. Sutter 2014-05-29 16:55:18 +00:00
parent d7dfa322d6
commit d6c469da60
1 changed files with 3 additions and 3 deletions

View File

@ -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 <literal>@ManyToOne</literal> or
<literal>@OneToOne</literal> relation annotation and the
<literal>@MappedById</literal> annotation.
<literal>@MapsId</literal> annotation.
</para>
@ -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 <classname>LineItem</classname> uses an embedded id to
represent its primary key. The primary key attribute corresponding to the
relationship in the <classname>LineItemId</classname> must be of the same
type as the primary key of the <classname>Order</classname>. The
<literal>MappedById</literal> annotation must be applied to the relationship
<literal>MapsId</literal> annotation must be applied to the relationship
field <literal>LineItem.order</literal>.
</para>