@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Inheritance
Inheritanceアノテーションが指定されてない場合、もしくはエンティティクラス階層で継承型が指定されていない場合は、
SINGLE_TABLEマッピングが使用されます。
Example:
@Entity
@Inheritance(strategy=JOINED)
public class Customer { ... }
@Entity
public class ValuedCustomer extends Customer { ... }
| 修飾子とタイプ | 任意要素と説明 |
|---|---|
InheritanceType |
strategy
エンティティの継承階層に使用される戦略。
|
public abstract InheritanceType strategy
Translated by @megascus.