Consider a deep inheritance hierarchy consisting of Java Persistence entity classes, non-entities,
and mapped superclasses. Which statement is correct, assuming NO mapping descriptor is
present?
A.
An entity class must NOT inherit from a non-entity class.
B.
An entity class must NOT be extended by a non-entity class.
C.
Only the root class in an inheritance hierarchy can be annotated wtith @MappedSuperclass.
D.
The primary key must either be defined in the topmost entity class of the inheritance hierarchy
or it can be defined in a superclass if this class is annotated as @MappedSuperclass.