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

changeset 134
f47e82cd6077
parent 86
0a658e53177c
child 138
e2aa673dd473
     1.1 --- a/src/main/java/de/uapcore/lightpit/entities/Project.java	Sat Oct 17 15:21:56 2020 +0200
     1.2 +++ b/src/main/java/de/uapcore/lightpit/entities/Project.java	Sat Oct 17 19:56:50 2020 +0200
     1.3 @@ -34,6 +34,7 @@
     1.4  
     1.5      private final int id;
     1.6      private String name;
     1.7 +    private String node;
     1.8      private String description;
     1.9      private String repoUrl;
    1.10      private User owner;
    1.11 @@ -54,6 +55,14 @@
    1.12          this.name = name;
    1.13      }
    1.14  
    1.15 +    public String getNode() {
    1.16 +        return node == null ? String.valueOf(id) : node;
    1.17 +    }
    1.18 +
    1.19 +    public void setNode(String node) {
    1.20 +        this.node = node;
    1.21 +    }
    1.22 +
    1.23      public String getDescription() {
    1.24          return description;
    1.25      }

mercurial