Inheritance#strategy
| Modifier and Type | Field and Description |
|---|---|
| public static final InheritanceType | JOINED
A table for each abstract or concrete entity class, with only the columns mapped to persistent fields and properties declared by the entity class. |
| public static final InheritanceType | SINGLE_TABLE
A single table for each entity class hierarchy. |
| public static final InheritanceType | TABLE_PER_CLASS
A table for each concrete entity class. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static InheritanceType | |
| public static InheritanceType[] |
| JOINED | back to summary |
|---|---|
| public static final InheritanceType JOINED 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. | |
| SINGLE_TABLE | back to summary |
|---|---|
| public static final InheritanceType SINGLE_TABLE 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. | |
| TABLE_PER_CLASS | back to summary |
|---|---|
| public static final InheritanceType TABLE_PER_CLASS 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. | |
| InheritanceType | back to summary |
|---|---|
| private InheritanceType() | |
| valueOf | back to summary |
|---|---|
| public static InheritanceType valueOf(String name) | |
| values | back to summary |
|---|---|
| public static InheritanceType[] values() | |