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

changeset 86
0a658e53177c
parent 81
1a2e7b5d48f7
child 88
1438e5a22c55
     1.1 --- a/src/main/java/de/uapcore/lightpit/entities/Issue.java	Sat May 30 18:12:38 2020 +0200
     1.2 +++ b/src/main/java/de/uapcore/lightpit/entities/Issue.java	Mon Jun 01 14:46:58 2020 +0200
     1.3 @@ -38,7 +38,7 @@
     1.4  public final class Issue {
     1.5  
     1.6      private int id;
     1.7 -    private final Project project;
     1.8 +    private Project project;
     1.9  
    1.10      private IssueStatus status;
    1.11      private IssueCategory category;
    1.12 @@ -55,9 +55,8 @@
    1.13      private Timestamp updated = Timestamp.from(Instant.now());
    1.14      private Date eta;
    1.15  
    1.16 -    public Issue(int id, Project project) {
    1.17 +    public Issue(int id) {
    1.18          this.id = id;
    1.19 -        this.project = project;
    1.20      }
    1.21  
    1.22      public int getId() {
    1.23 @@ -72,6 +71,10 @@
    1.24          this.id = id;
    1.25      }
    1.26  
    1.27 +    public void setProject(Project project) {
    1.28 +        this.project = project;
    1.29 +    }
    1.30 +
    1.31      public Project getProject() {
    1.32          return project;
    1.33      }

mercurial