fix confusing/wrong para spotted by Steve
This commit is contained in:
parent
f1f6f1645a
commit
56591c6ff1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue