JPA Enum

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

A table for each abstract or concrete entity class, with only the columns mapped to persistent fields and properties declared by the entity class.

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
A single table for each entity class hierarchy.

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
A table for each concrete entity class.

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

Method inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait