9.13 Procedure for inheriting an entity class
The inheritance of an entity class has the following features:
-
An entity class can use either an abstract class or a concrete class. Apart from the abstract class and concrete class, you can also define @Entity. Furthermore, both abstract class and concrete class can be mapped as entities and queries can be issued for both the classes.
-
An entity class can be inherited from another entity class.
-
An entity class can inherit a non-entity class. A non-entity class can also inherit an entity class.
This section describes the inheritance class types and the inheritance mapping strategy of the entity classes.
- Organization of this section