1.1 --- a/src/main/java/de/uapcore/lightpit/entities/Version.java Sun May 17 16:00:13 2020 +0200 1.2 +++ b/src/main/java/de/uapcore/lightpit/entities/Version.java Sun May 17 16:23:39 2020 +0200 1.3 @@ -33,21 +33,27 @@ 1.4 public class Version implements Comparable<Version> { 1.5 1.6 private final int id; 1.7 + private final Project project; 1.8 private String name; 1.9 /** 1.10 * If we do not want versions to be ordered lexicographically we may specify an order. 1.11 */ 1.12 - private int ordinal; 1.13 - private VersionStatus status; 1.14 + private int ordinal = 0; 1.15 + private VersionStatus status = VersionStatus.Future; 1.16 1.17 - public Version(int id) { 1.18 + public Version(int id, Project project) { 1.19 this.id = id; 1.20 + this.project = project; 1.21 } 1.22 1.23 public int getId() { 1.24 return id; 1.25 } 1.26 1.27 + public Project getProject() { 1.28 + return project; 1.29 + } 1.30 + 1.31 public String getName() { 1.32 return name; 1.33 }