package kr.wisestone.owl.domain;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
|
@Entity
|
public class IssueDepartment extends BaseEntity implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
private Long id;
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
@JoinColumn(name = "issue_id")
|
private Issue issue;
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
@JoinColumn(name = "workspace_id")
|
private Workspace workspace;
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
@JoinColumn(name = "department_id")
|
private Department department;
|
|
public IssueDepartment() {
|
}
|
|
public IssueDepartment(Workspace workspace, Issue issue, Department department) {
|
this.workspace = workspace;
|
this.issue = issue;
|
this.department = department;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Issue getIssue() {
|
return issue;
|
}
|
|
public void setIssue(Issue issue) {
|
this.issue = issue;
|
}
|
|
public Workspace getWorkspace() {
|
return workspace;
|
}
|
|
public void setWorkspace(Workspace workspace) {
|
this.workspace = workspace;
|
}
|
|
public Department getDepartment() {
|
return department;
|
}
|
|
public void setDepartment(Department department) {
|
this.department = department;
|
}
|
}
|