HHH-11837 - MapsId and PrimaryKeyJoinColumn examples in the documentation should use OneToOne rather than ManyToOne
Replace many-to-one with one-to-one as illustrated by the actual entity maappings
This commit is contained in:
parent
7728d23c9f
commit
0a24f4d6bd
|
@ -487,7 +487,7 @@ include::{sourcedir-associations}/OneToOneMapsIdTest.java[tag=identifiers-derive
|
||||||
----
|
----
|
||||||
====
|
====
|
||||||
|
|
||||||
In the example above, the `PersonDetails` entity uses the `id` column for both the entity identifier and for the many-to-one association to the `Person` entity.
|
In the example above, the `PersonDetails` entity uses the `id` column for both the entity identifier and for the one-to-one association to the `Person` entity.
|
||||||
The value of the `PersonDetails` entity identifier is "derived" from the identifier of its parent `Person` entity.
|
The value of the `PersonDetails` entity identifier is "derived" from the identifier of its parent `Person` entity.
|
||||||
|
|
||||||
[[identifiers-derived-mapsid-persist-example]]
|
[[identifiers-derived-mapsid-persist-example]]
|
||||||
|
|
Loading…
Reference in New Issue