package kr.wisestone.owl.domain;
|
|
import org.hibernate.annotations.Type;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
|
/**
|
* Created by wisestone on 2018-03-07.
|
*/
|
@Entity
|
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;
|
}
|
}
|