diff options
author | Vitaly Takmazov | 2023-01-28 18:24:32 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-28 19:07:28 +0300 |
commit | 906bf8ef21463f99820764807b656cb617b0aaa2 (patch) | |
tree | 542c02066866decfe50c7127578967b3b0b02537 /src/main/java/com/juick/model | |
parent | 5700d7c5dd1f578cd52451074ce316e192532ca6 (diff) |
Cleanup Tag model
Diffstat (limited to 'src/main/java/com/juick/model')
-rw-r--r-- | src/main/java/com/juick/model/Tag.java | 22 |
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; + } } |