Top Description Fields Constructors Methods
javax.persistence

public final Enum InheritanceType

extends Enum<InheritanceType>
Class Inheritance

Defines inheritance strategy options.
Since
Java Persistence 1.0

Field Summary

Modifier and TypeField and Description
public static final InheritanceType
JOINED

A strategy in which fields that are specific to a subclass are mapped to a separate table than the fields that are common to the parent class, and a join is performed to instantiate the subclass.

public static final InheritanceType
SINGLE_TABLE

A single table per class hierarchy.

public static final InheritanceType
TABLE_PER_CLASS

A table per concrete entity class.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static InheritanceType
public static InheritanceType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

JOINEDback to summary
public static final InheritanceType JOINED

A strategy in which fields that are specific to a subclass are mapped to a separate table than the fields that are common to the parent class, and a join is performed to instantiate the subclass.

SINGLE_TABLEback to summary
public static final InheritanceType SINGLE_TABLE

A single table per class hierarchy.

TABLE_PER_CLASSback to summary
public static final InheritanceType TABLE_PER_CLASS

A table per concrete entity class.

Constructor Detail

InheritanceTypeback to summary
private InheritanceType()

Method Detail

valueOfback to summary
public static InheritanceType valueOf(String name)
valuesback to summary
public static InheritanceType[] values()