package kr.wisestone.owl.domain;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
|
/**
|
* Created by wisestone on 2019-02-28.
|
*/
|
@Entity
|
public class IssueVersion extends BaseEntity implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
private Long id;
|
private Integer version;
|
private String content;
|
|
@ManyToOne(fetch= FetchType.LAZY)
|
@JoinColumn(name="issue_id")
|
private Issue issue;
|
|
@ManyToOne(fetch= FetchType.LAZY)
|
@JoinColumn(name="project_id")
|
private Project project;
|
|
@ManyToOne(fetch= FetchType.LAZY)
|
@JoinColumn(name="workspace_id")
|
private Workspace workspace;
|
|
public IssueVersion() {
|
}
|
|
public IssueVersion(Issue issue, Project project, Workspace workspace, String content) {
|
this.issue = issue;
|
this.project = project;
|
this.workspace = workspace;
|
this.content = content;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Integer getVersion() {
|
return version;
|
}
|
|
public void setVersion(Integer version) {
|
this.version = version;
|
}
|
|
public String getContent() {
|
return content;
|
}
|
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
public Issue getIssue() {
|
return issue;
|
}
|
|
public void setIssue(Issue issue) {
|
this.issue = issue;
|
}
|
|
public Project getProject() {
|
return project;
|
}
|
|
public void setProject(Project project) {
|
this.project = project;
|
}
|
|
public Workspace getWorkspace() {
|
return workspace;
|
}
|
|
public void setWorkspace(Workspace workspace) {
|
this.workspace = workspace;
|
}
|
}
|