Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 33 | PointedEar | 1 | //$Id: Inheritance.java 11282 2007-03-14 22:05:59Z epbernard $ |
| 2 | //EJB3 Specification Copyright 2004-2006 Sun Microsystems, Inc. |
||
| 3 | package javax.persistence; |
||
| 4 | |||
| 5 | import static java.lang.annotation.ElementType.TYPE; |
||
| 6 | import java.lang.annotation.Retention; |
||
| 7 | import static java.lang.annotation.RetentionPolicy.RUNTIME; |
||
| 8 | import java.lang.annotation.Target; |
||
| 9 | import static javax.persistence.InheritanceType.SINGLE_TABLE; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Defines the inheritance strategy to be used for an entity class hierarchy. It is specified |
||
| 13 | * on the entity class that is the root of the entity class hierarchy. |
||
| 14 | * |
||
| 15 | * @author Emmanuel Bernard |
||
| 16 | */ |
||
| 17 | @Target({TYPE}) @Retention(RUNTIME) |
||
| 18 | public @interface Inheritance { |
||
| 19 | /** |
||
| 20 | * The strategy to be used |
||
| 21 | */ |
||
| 22 | InheritanceType strategy() default SINGLE_TABLE; |
||
| 23 | } |