aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/model')
-rw-r--r--src/main/java/com/juick/model/Tag.java22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/main/java/com/juick/model/Tag.java b/src/main/java/com/juick/model/Tag.java
index e7fcde5d..b27fe7e6 100644
--- a/src/main/java/com/juick/model/Tag.java
+++ b/src/main/java/com/juick/model/Tag.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2020, Juick
+ * Copyright (C) 2008-2023, Juick
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -38,9 +38,9 @@ public class Tag implements Comparable<Tag>, Serializable {
private String name;
@XmlTransient
- public int TID = 0;
+ private int id;
@XmlTransient
- public int SynonymID = 0;
+ private int synonymId;
public Tag() {
// required for (de)serialization
@@ -76,4 +76,20 @@ public class Tag implements Comparable<Tag>, Serializable {
public int compareTo(Tag o) {
return Objects.compare(name, o.getName(), Comparator.naturalOrder());
}
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public int getSynonymId() {
+ return synonymId;
+ }
+
+ public void setSynonymId(int synonymId) {
+ this.synonymId = synonymId;
+ }
}