|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Inheritance
Defines the inheritance strategy to be used for an entity class
hierarchy. It is specified on the entity class that is the root of
the entity class hierarchy. If the
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms. Generated on 10-February-2011 12:41 Inheritance
annotation is not
specified or if no inheritance type is specified for an entity
class hierarchy, the SINGLE_TABLE
mapping strategy is used.
Example:
@Entity
@Inheritance(strategy=JOINED)
public class Customer { ... }
@Entity
public class ValuedCustomer extends Customer { ... }
Optional Element Summary
InheritanceType
strategy
The strategy to be used for the entity inheritance hierarchy.
strategy
public abstract InheritanceType strategy
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: REQUIRED | OPTIONAL
DETAIL: ELEMENT
Submit a bug or feature