Jakarta Persistence (JPA) Enum

jakarta.persistence.InheritanceType

java.lang.Object
  java.lang.Enum<jakarta.persistence.InheritanceType>
    jakarta.persistence.InheritanceType
Implemented Interfaces:
Constable, Comparable<E>, Serializable

Enumerated the options for mapping entity inheritance.
See Also:
Since:
Jakarta Persistence (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:
Jakarta Persistence (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 discriminator column.

Since:
Jakarta Persistence (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:
Jakarta Persistence (JPA) 1.0

Synthetic Public Static Methods:

values(), valueOf(String)

Additional JDK methods inherited from java.lang.Enum

clone(), compareTo(E), describeConstable(), equals(Object), finalize(), getDeclaringClass(), hashCode(), name(), ordinal(), readObject(ObjectInputStream), readObjectNoData(), toString(), valueOf(Class,String)

Additional JDK methods inherited from java.lang.Object

clone(), equals(Object), finalize(), getClass(), hashCode(), notify(), notifyAll(), toString(), wait(), wait(long), wait(long,int), wait0(long)

Additional JDK methods inherited from java.lang.constant.Constable

describeConstable()

Additional JDK methods inherited from java.lang.Comparable

compareTo(T)