36 import java.util.Objects; |
36 import java.util.Objects; |
37 |
37 |
38 public final class Issue { |
38 public final class Issue { |
39 |
39 |
40 private int id; |
40 private int id; |
41 private final Project project; |
41 private Project project; |
42 |
42 |
43 private IssueStatus status; |
43 private IssueStatus status; |
44 private IssueCategory category; |
44 private IssueCategory category; |
45 |
45 |
46 private String subject; |
46 private String subject; |
68 * Should only be used by a DAO to store the generated ID. |
67 * Should only be used by a DAO to store the generated ID. |
69 * @param id the freshly generated ID returned from the database after insert |
68 * @param id the freshly generated ID returned from the database after insert |
70 */ |
69 */ |
71 public void setId(int id) { |
70 public void setId(int id) { |
72 this.id = id; |
71 this.id = id; |
|
72 } |
|
73 |
|
74 public void setProject(Project project) { |
|
75 this.project = project; |
73 } |
76 } |
74 |
77 |
75 public Project getProject() { |
78 public Project getProject() { |
76 return project; |
79 return project; |
77 } |
80 } |