aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-09-15 03:19:29 +0300
committerGravatar Vitaly Takmazov2017-09-15 03:25:35 +0300
commit763e71486aa51900de47a20fbbe2c5b0bf6193c5 (patch)
tree5228aa01025365df84e0564240abb6adfb0f55be /juick-core/src/main/java
parent49daea46cd6a56680a316996f37f9e1036d4f727 (diff)
core: fix tags deserialization
Diffstat (limited to 'juick-core/src/main/java')
-rw-r--r--juick-core/src/main/java/com/juick/Tag.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/juick-core/src/main/java/com/juick/Tag.java b/juick-core/src/main/java/com/juick/Tag.java
index 7f839242..29e5c767 100644
--- a/juick-core/src/main/java/com/juick/Tag.java
+++ b/juick-core/src/main/java/com/juick/Tag.java
@@ -18,10 +18,7 @@ package com.juick;
import com.fasterxml.jackson.annotation.JsonValue;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlValue;
+import javax.xml.bind.annotation.*;
import java.util.Comparator;
import java.util.Objects;
@@ -29,11 +26,14 @@ import java.util.Objects;
* @author Ugnich Anton
*/
@XmlRootElement(name = "tag", namespace = "http://juick.com/message")
-@XmlAccessorType(XmlAccessType.PROPERTY)
+@XmlAccessorType(XmlAccessType.FIELD)
public class Tag implements Comparable<Tag> {
+ @XmlValue
private String name;
+ @XmlTransient
public int TID = 0;
+ @XmlTransient
public int SynonymID = 0;
public Tag() {
@@ -50,7 +50,7 @@ public class Tag implements Comparable<Tag> {
(o instanceof Tag) && Objects.equals(name, ((Tag) o).name);
}
- @XmlValue
+ @XmlTransient
@JsonValue
public String getName() {
return name;