package kr.wisestone.owl.domain;
|
|
import kr.wisestone.owl.domain.enumType.IssueHistoryType;
|
import javax.persistence.*;
|
import java.io.Serializable;
|
|
/**
|
* Created by wisestone on 2018-01-26.
|
*/
|
@Entity
|
public class IssueHistory extends BaseEntity implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
private Long id;
|
private String description;
|
|
@Enumerated(EnumType.STRING)
|
private IssueHistoryType issueHistoryType;
|
|
@ManyToOne(fetch= FetchType.LAZY)
|
@JoinColumn(name="issue_id")
|
private Issue issue;
|
|
@ManyToOne(fetch= FetchType.LAZY)
|
@JoinColumn(name="project_id")
|
private Project project;
|
|
public IssueHistory(){}
|
|
public IssueHistory(Issue issue) {
|
this.issue = issue;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Project getProject() {
|
return project;
|
}
|
|
public void setProject(Project project) {
|
this.project = project;
|
}
|
|
public String getDescription() {
|
return description;
|
}
|
|
public void setDescription(String description) {
|
this.description = description;
|
}
|
|
public IssueHistoryType getIssueHistoryType() {
|
return issueHistoryType;
|
}
|
|
public void setIssueHistoryType(IssueHistoryType issueHistoryType) {
|
this.issueHistoryType = issueHistoryType;
|
}
|
|
public Issue getIssue() {
|
return issue;
|
}
|
|
public void setIssue(Issue issue) {
|
this.issue = issue;
|
}
|
}
|