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

changeset 134
f47e82cd6077
parent 128
947d0f6a6a83
child 138
e2aa673dd473
--- a/src/main/java/de/uapcore/lightpit/entities/Version.java	Sat Oct 17 15:21:56 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/entities/Version.java	Sat Oct 17 19:56:50 2020 +0200
@@ -34,6 +34,7 @@
 
     private final int id;
     private String name;
+    private String node;
     /**
      * If we do not want versions to be ordered lexicographically we may specify an order.
      */
@@ -56,6 +57,14 @@
         this.name = name;
     }
 
+    public String getNode() {
+        return node == null ? String.valueOf(id) : node;
+    }
+
+    public void setNode(String node) {
+        this.node = node;
+    }
+
     public int getOrdinal() {
         return ordinal;
     }

mercurial