fix confusing/wrong para spotted by Steve

This commit is contained in:
Gavin 2023-05-17 21:01:04 +02:00 committed by Christian Beikov
parent f1f6f1645a
commit 56591c6ff1
1 changed files with 3 additions and 2 deletions

View File

@ -155,8 +155,9 @@ class Book extends Versioned {
} }
---- ----
Every entity must have an identifier attribute, but only a root entity class may declare an attribute annotated `@Id`. A root entity class must declare an attribute annotated `@Id`, or inherit one from a `@MappedSuperclass`.
Subclass entities always inherit the identifier attribute of the root entity. A subclass entity always inherits the identifier attribute of the root entity.
It may not declare its own `@Id` attribute.
[[identifier-attributes]] [[identifier-attributes]]
=== Identifier attributes === Identifier attributes