OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-03-03 2b0d6901597206d1c24abad0ff3ac0889f9194dd
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
package kr.wisestone.owl.domain;
 
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.Type;
 
import javax.persistence.*;
import java.io.Serializable;
 
/**
 * Created by wisestone on 2018-03-07.
 */
@Entity
@DynamicInsert
public class WorkflowTransition extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
 
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
 
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "workflow_id")
    private Workflow workflow;
 
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "source_issue_status_id")
    private IssueStatus sourceIssueStatus;
 
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "target_issue_status_id")
    private IssueStatus targetIssueStatus;
 
    private Long sourceX;
    private Long sourceY;
    private Long targetX;
    private Long targetY;
    private Long correctX;
    private Long correctY;
    @Type(type="yes_no")
    private Boolean direct = Boolean.FALSE;
 
    public WorkflowTransition(){}
 
    public WorkflowTransition(Workflow workflow, IssueStatus sourceIssueStatus, IssueStatus targetIssueStatus, Long sourceX, Long sourceY, Long targetX, Long targetY, Long correctX, Long correctY){
        this.workflow = workflow;
        this.sourceIssueStatus = sourceIssueStatus;
        this.targetIssueStatus = targetIssueStatus;
        this.sourceX = sourceX;
        this.sourceY = sourceY;
        this.targetX = targetX;
        this.targetY = targetY;
        this.correctX = correctX;
        this.correctY = correctY;
    }
 
    public WorkflowTransition(Workflow workflow, IssueStatus sourceIssueStatus, IssueStatus targetIssueStatus, Long sourceX, Long sourceY, Long targetX, Long targetY, Long correctX, Long correctY, Boolean direct){
        this.workflow = workflow;
        this.sourceIssueStatus = sourceIssueStatus;
        this.targetIssueStatus = targetIssueStatus;
        this.sourceX = sourceX;
        this.sourceY = sourceY;
        this.targetX = targetX;
        this.targetY = targetY;
        this.correctX = correctX;
        this.correctY = correctY;
        this.direct = direct;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Workflow getWorkflow() {
        return workflow;
    }
 
    public void setWorkflow(Workflow workflow) {
        this.workflow = workflow;
    }
 
    public IssueStatus getSourceIssueStatus() {
        return sourceIssueStatus;
    }
 
    public void setSourceIssueStatus(IssueStatus sourceIssueStatus) {
        this.sourceIssueStatus = sourceIssueStatus;
    }
 
    public IssueStatus getTargetIssueStatus() {
        return targetIssueStatus;
    }
 
    public void setTargetIssueStatus(IssueStatus targetIssueStatus) {
        this.targetIssueStatus = targetIssueStatus;
    }
 
    public Long getSourceX() {
        return sourceX;
    }
 
    public void setSourceX(Long sourceX) {
        this.sourceX = sourceX;
    }
 
    public Long getSourceY() {
        return sourceY;
    }
 
    public void setSourceY(Long sourceY) {
        this.sourceY = sourceY;
    }
 
    public Long getTargetX() {
        return targetX;
    }
 
    public void setTargetX(Long targetX) {
        this.targetX = targetX;
    }
 
    public Long getTargetY() {
        return targetY;
    }
 
    public void setTargetY(Long targetY) {
        this.targetY = targetY;
    }
 
    public Long getCorrectX() {
        return correctX;
    }
 
    public void setCorrectX(Long correctX) {
        this.correctX = correctX;
    }
 
    public Long getCorrectY() {
        return correctY;
    }
 
    public void setCorrectY(Long correctY) {
        this.correctY = correctY;
    }
 
    public Boolean getDirect() {
        return direct;
    }
 
    public void setDirect(Boolean direct) {
        this.direct = direct;
    }
}