| | |
| | | private String name; |
| | | private String description; |
| | | private String color; |
| | | private Long useCompany; |
| | | private Long usePartner; |
| | | private Boolean inheritPartners; |
| | | |
| | | @ManyToOne(fetch = FetchType.LAZY) |
| | | @JoinColumn(name = "workspace_id") |
| | |
| | | @ManyToOne(fetch = FetchType.LAZY) |
| | | @JoinColumn(name = "project_id") |
| | | private Project project; |
| | | |
| | | @OneToMany(mappedBy = "issueType", cascade = {CascadeType.ALL}, orphanRemoval = true) |
| | | private Set<IssueTypeApiEndStatus> issueTypeApiEndStatuses; |
| | | |
| | | /*@ManyToOne(fetch = FetchType.LAZY) |
| | | @JoinColumn(name = "company_id") |
| | |
| | | |
| | | public IssueType(){} |
| | | |
| | | public IssueType(Workspace workspace, Workflow workflow, String name, String description, String color){ |
| | | public IssueType(Workspace workspace, Workflow workflow, String name, String description, String color, Long usePartner, Boolean inheritPartners){ |
| | | this.workspace = workspace; |
| | | this.workflow = workflow; |
| | | this.name = name; |
| | | this.description = description; |
| | | this.color = color; |
| | | this.usePartner = usePartner; |
| | | this.inheritPartners = inheritPartners; |
| | | } |
| | | |
| | | public Long getId() { |
| | |
| | | this.project = project; |
| | | } |
| | | |
| | | public Long getUseCompany() { |
| | | return useCompany; |
| | | public Long getUsePartner() { |
| | | return usePartner; |
| | | } |
| | | |
| | | public void setUseCompany(Long useCompany) { |
| | | this.useCompany = useCompany; |
| | | public void setUsePartner(Long usePartner) { |
| | | this.usePartner = usePartner; |
| | | } |
| | | |
| | | public Set<IssueTypeApiEndStatus> getIssueTypeApiEndStatuses() { |
| | | return issueTypeApiEndStatuses; |
| | | } |
| | | |
| | | public void setIssueTypeApiEndStatuses(Set<IssueTypeApiEndStatus> issueTypeApiEndStatuses) { |
| | | this.issueTypeApiEndStatuses = issueTypeApiEndStatuses; |
| | | } |
| | | |
| | | public Boolean getInheritPartners() { |
| | | return inheritPartners; |
| | | } |
| | | |
| | | public void setInheritPartners(Boolean inheritPartners) { |
| | | this.inheritPartners = inheritPartners; |
| | | } |
| | | } |