InheritanceType
java.lang.Object ∟ java.lang.Enum<jakarta.persistence.InheritanceType> ∟ jakarta.persistence.InheritanceType
Enumerated the options for mapping entity inheritance.
- See Also:
- Inheritance.strategy
- Since:
- JPA 1.0
Enum Constants
Each class in the hierarchy has its own table, but that table does not contain columns mapped to inherited fields or properties, and so the state of an entity instance might be stored across multiple table rows. A join is used to retrieve the state of such entities.
- Since:
- JPA 1.0
Subclasses are stored together with the root class, and each entity instance is stored as a single table row.
The concrete subclass represented by a row is determined by the value held by a plain.
- Since:
- JPA 1.0
Each concrete class in the hierarchy has its own table, and each entity instance is stored as a single table row.
No discriminator column is necessary.
- Since:
- JPA 1.0
Public Static Enum Methods:
Method inherited from class java.lang.Enum
compareTo, compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf