fix confusing/wrong para spotted by Steve

This commit is contained in:
Gavin 2023-05-17 21:01:04 +02:00
parent 23de8a5e5d
commit d9a1980ee0
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`.
Subclass entities always inherit the identifier attribute of the root entity.
A root entity class must declare an attribute annotated `@Id`, or inherit one from a `@MappedSuperclass`.
A subclass entity always inherits the identifier attribute of the root entity.
It may not declare its own `@Id` attribute.
[[identifier-attributes]]
=== Identifier attributes