01: package javax.persistence;
02:
03: import java.lang.annotation.*;
04: import static java.lang.annotation.ElementType.*;
05: import static java.lang.annotation.RetentionPolicy.*;
06: import static javax.persistence.InheritanceType.*;
07: import static javax.persistence.DiscriminatorType.*;
08:
09: @Target({TYPE})
10: @Retention(RUNTIME)
11: public @interface Inheritance {
12: InheritanceType strategy() default SINGLE_TABLE;
13:
14: DiscriminatorType discriminatorType() default STRING;
15:
16: String discriminatorValue() default "";
17:
18: AttributeOverride[] inheritedAttributes() default {};
19: }
|