mirror of https://github.com/apache/openjpa.git
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:
parent
d7dfa322d6
commit
d6c469da60
|
@ -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
|
identity. If an embedded identity object is used, you must annotate the
|
||||||
relation field with both the <literal>@ManyToOne</literal> or
|
relation field with both the <literal>@ManyToOne</literal> or
|
||||||
<literal>@OneToOne</literal> relation annotation and the
|
<literal>@OneToOne</literal> relation annotation and the
|
||||||
<literal>@MappedById</literal> annotation.
|
<literal>@MapsId</literal> annotation.
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -805,7 +805,7 @@ public class LineItem {
|
||||||
@EmbeddedId LineItemId id;
|
@EmbeddedId LineItemId id;
|
||||||
|
|
||||||
@ManyToOne
|
@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
|
// must be used to specify the name of the primary
|
||||||
// key attribute to which the relationship
|
// key attribute to which the relationship
|
||||||
// corresponds. If the primary key referenced by
|
// 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
|
represent its primary key. The primary key attribute corresponding to the
|
||||||
relationship in the <classname>LineItemId</classname> must be of the same
|
relationship in the <classname>LineItemId</classname> must be of the same
|
||||||
type as the primary key of the <classname>Order</classname>. The
|
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>.
|
field <literal>LineItem.order</literal>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue