aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputAnnotationScopeIndentationCheck.java
blob: b39cc18471289a4be91f09b4b1356b5e58142965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.puppycrawl.tools.checkstyle.checks.indentation; //indent:0 exp:0

import java.util.Date; //indent:0 exp:0

@Entity //indent:0 exp:0
@SecondaryTable(name = "TV_PROGRAM_EXT", pkJoinColumns = { //indent:0 exp:0
    @PrimaryKeyJoinColumn(name = "CHANNEL_ID"), //indent:4 exp:4
    @PrimaryKeyJoinColumn(name = "PRESENTER_NAME") //indent:4 exp:4
        }) //indent:8 exp:0 warn
@AssociationOverrides( { //indent:0 exp:0
    @AssociationOverride(name = "id.channel", joinColumns = @JoinColumn(name = "chan_id", nullable = false)), //indent:4 exp:4
    @AssociationOverride(name = "id.presenter", joinColumns = @JoinColumn(name = "presenter_name", nullable = false))}) //indent:4 exp:4
public class InputAnnotationScopeIndentationCheck { //indent:0 exp:0
    @EmbeddedId //indent:4 exp:4
    public String id; //indent:4 exp:4

    @Temporal(TemporalType.TIME) //indent:4 exp:4
    Date time; //indent:4 exp:4

    @Column(name = "TXT", table = "TV_PROGRAM_EXT") //indent:4 exp:4
    public String text; //indent:4 exp:4

} //indent:0 exp:0

@interface Entity {} //indent:0 exp:0
@interface SecondaryTable { //indent:0 exp:0
    String name(); //indent:4 exp:4
    PrimaryKeyJoinColumn[] pkJoinColumns(); //indent:4 exp:4
} //indent:0 exp:0
@interface AssociationOverrides { //indent:0 exp:0
    AssociationOverride[] value(); //indent:4 exp:4
} //indent:0 exp:0
@interface EmbeddedId {} //indent:0 exp:0
@interface Temporal { //indent:0 exp:0
    String value(); //indent:4 exp:4
} //indent:0 exp:0
@interface Column { //indent:0 exp:0
    String name(); //indent:4 exp:4
    String table(); //indent:4 exp:4
} //indent:0 exp:0
@interface PrimaryKeyJoinColumn { //indent:0 exp:0
    String name(); //indent:4 exp:4
} //indent:0 exp:0
@interface AssociationOverride { //indent:0 exp:0
    String name(); //indent:4 exp:4
    JoinColumn joinColumns(); //indent:4 exp:4
} //indent:0 exp:0
@interface JoinColumn { //indent:0 exp:0
    String name(); //indent:4 exp:4
    boolean nullable(); //indent:4 exp:4
} //indent:0 exp:0
class TemporalType { //indent:0 exp:0
    static final String TIME = ""; //indent:4 exp:4
} //indent:0 exp:0