JPA Annotation

Inheritance

Target: TYPE
Implemented Interfaces:
Annotation

Specifies the inheritance mapping strategy for the entity class hierarchy which descends from the annotated entity class.

This annotation must be applied to the entity class that is the root of the entity class hierarchy. If the Inheritance annotation is not specified, or if no inheritance type is specified for an entity class hierarchy, the SINGLE_TABLE mapping strategy is used.

Example:

 {@snippet :
See Also:
InheritanceType
Since:
JPA 1.0

Public Annotation Attributes

InheritanceType strategy default InheritanceType.SINGLE_TABLE
The inheritance mapping strategy for the entity inheritance hierarchy.
Since:
JPA 1.0