From 1816940b212f16c0c9cd6fb63498c8dd2a4fc818 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Mon, 11 Sep 2023 17:09:25 +0200 Subject: [PATCH] add a couple of explanatory sentences to derived id section of doc --- documentation/src/main/asciidoc/introduction/Mapping.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/src/main/asciidoc/introduction/Mapping.adoc b/documentation/src/main/asciidoc/introduction/Mapping.adoc index 951d959d25..e5ea4e1754 100644 --- a/documentation/src/main/asciidoc/introduction/Mapping.adoc +++ b/documentation/src/main/asciidoc/introduction/Mapping.adoc @@ -863,10 +863,12 @@ class Parent { } ---- +The `parentId` field holds the primary key of the `Parent` table, which will also form part of the composite primary key of every `Child` belonging to the `Parent`. + [discrete] ==== First way -In the first, slightly simpler approach, we define an `@IdClass`: +In the first, slightly simpler approach, we define an `@IdClass` to represent the primary key of `Child`: [source,java] ----