01: package org.completion;
02:
03: import javax.persistence.Basic;
04: import javax.persistence.Column;
05: import javax.persistence.Enumerated;
06: import javax.persistence.FieldResult;
07: import javax.persistence.NamedNativeQuery;
08: import javax.persistence.Temporal;
09:
10: public class TestAdvancedAnnotation {
11: public @interface RequestForEnhancement {
12: int id();
13:
14: String synopsis();
15:
16: String engineer() default "[unassigned]";
17:
18: String date() default "[unimplemented]";
19: }
20:
21: /** Instant substitution in case of one annotation name. */
22: /**CC
23: @|
24: Basic
25: @Basic
26: */
27:
28: /** Instant substitution in case of one annotation attribute. */
29: /**CC
30: @FieldResult(|
31: String name
32: @FieldResult(name=
33: */
34:
35: /** Instant substitution in case of one annotation value. */
36: /**
37: @Enumerated(v|
38: EnumType value = javax.persistence.EnumType.ORDINAL
39: @Enumerated(value=
40: */
41:
42: /** Completion of annotation value in case of just one attribute. */
43: /**CC
44: @Temporal(|
45: TemporalType value
46: @Temporal(value=
47: */
48:
49: /** Completion of Java class for resultClass attribute. */
50: /**CC
51: @NamedNativeQuery(resultClass=java.util.C|
52: Calendar
53: @NamedNativeQuery(resultClass=java.util.Calendar
54: */
55:
56: /** Completion of Boolean value. */
57: /**CC
58: @Column(unique=|
59: false
60: @Column(unique=false
61: */
62:
63: /** Completion user defined annotation. */
64: /**CC
65: @|
66: RequestForEnhancement
67: @RequestForEnhancement
68: */
69:
70: /**CC
71: @RequestForEnhancement(|)
72: int id
73: @RequestForEnhancement(id=)
74: */
75:
76: }
|