src/main/java/de/uapcore/lightpit/entities/Issue.java

changeset 86
0a658e53177c
parent 81
1a2e7b5d48f7
child 88
1438e5a22c55
equal deleted inserted replaced
85:3d16ad54b3dc 86:0a658e53177c
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;
53 53
54 private Timestamp created = Timestamp.from(Instant.now()); 54 private Timestamp created = Timestamp.from(Instant.now());
55 private Timestamp updated = Timestamp.from(Instant.now()); 55 private Timestamp updated = Timestamp.from(Instant.now());
56 private Date eta; 56 private Date eta;
57 57
58 public Issue(int id, Project project) { 58 public Issue(int id) {
59 this.id = id; 59 this.id = id;
60 this.project = project;
61 } 60 }
62 61
63 public int getId() { 62 public int getId() {
64 return id; 63 return id;
65 } 64 }
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 }

mercurial