@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Inheritance
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 { ... }
Modifier and Type | Optional Element and Description |
---|---|
InheritanceType |
strategy
The strategy to be used for the entity inheritance hierarchy.
|
public abstract InheritanceType strategy
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.