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

changeset 134
f47e82cd6077
parent 128
947d0f6a6a83
child 138
e2aa673dd473
     1.1 --- a/src/main/java/de/uapcore/lightpit/entities/Version.java	Sat Oct 17 15:21:56 2020 +0200
     1.2 +++ b/src/main/java/de/uapcore/lightpit/entities/Version.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      /**
     1.9       * If we do not want versions to be ordered lexicographically we may specify an order.
    1.10       */
    1.11 @@ -56,6 +57,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 int getOrdinal() {
    1.24          return ordinal;
    1.25      }

mercurial