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:
Vlad Mihalcea 2017-06-27 12:09:41 +03:00
parent 7728d23c9f
commit 0a24f4d6bd
1 changed files with 1 additions and 1 deletions

View File

@ -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]]