From fa3a364b7948f8e2b739e96afe76a3d1cf748e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Wed, 3 Nov 2021 14:50:59 +0100 Subject: [PATCH 1/2] Fix dead link in documentation --- .../main/asciidoc/userguide/chapters/bootstrap/Bootstrap.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/src/main/asciidoc/userguide/chapters/bootstrap/Bootstrap.adoc b/documentation/src/main/asciidoc/userguide/chapters/bootstrap/Bootstrap.adoc index fb4c994fc2..6fdc91bfae 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/bootstrap/Bootstrap.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/bootstrap/Bootstrap.adoc @@ -315,7 +315,7 @@ In the `persistence.xml` configuration file above, the `orm.xml` XML file contai As previously seen, the Hibernate native bootstrap mechanism allows you to customize a great variety of configurations which are passed via the `Metadata` object. -When using Hibernate as a JPA provider, the `EntityManagerFactory` is backed by a `SessionFactory`. For this reason, you might still want to use the `Metadata` object to pass various settings which cannot be supplied via the standard Hibernate <>. +When using Hibernate as a JPA provider, the `EntityManagerFactory` is backed by a `SessionFactory`. For this reason, you might still want to use the `Metadata` object to pass various settings which cannot be supplied via the standard Hibernate <>. For this reason, you can use the https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/boot/spi/MetadataBuilderContributor.html[`MetadataBuilderContributor`] class as you can see in the following examples. From 3845d2f97f91f6fbab3c295ea43a39e8da1f0c2a Mon Sep 17 00:00:00 2001 From: Maciej Walkowiak Date: Wed, 10 Nov 2021 21:47:41 +0100 Subject: [PATCH 2/2] Refer correct entity in "Composite identifiers with associations" section Code sample uses `Book` entity instead of `PersonAddress`. --- .../main/asciidoc/userguide/chapters/domain/identifiers.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/src/main/asciidoc/userguide/chapters/domain/identifiers.adoc b/documentation/src/main/asciidoc/userguide/chapters/domain/identifiers.adoc index 1f1fe9718d..cb65513291 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/domain/identifiers.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/domain/identifiers.adoc @@ -186,7 +186,7 @@ Use of this feature may or may not be portable from a JPA perspective. ==== Composite identifiers with associations Hibernate allows defining a composite identifier out of entity associations. -In the following example, the `PersonAddress` entity identifier is formed of two `@ManyToOne` associations. +In the following example, the `Book` entity identifier is formed of two `@ManyToOne` associations. [[identifiers-composite-id-mapping-example]] .Composite identifiers with associations