add label icons back-end (model and database)

This commit is contained in:
Claudio Barril
2014-04-14 18:09:34 -03:00
parent 725be7ca9b
commit 8e7133c4ab
7 changed files with 29 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ public class Label {
@NotNull private User creator;
@Nullable private Label parent;
@NotNull private String color;
@NotNull private String icon;
public void setParent(@Nullable Label parent) {
this.parent = parent;
@@ -57,6 +58,15 @@ public class Label {
this.color = color;
}
@NotNull
public String getIcon() {
return icon;
}
public void setIcon(@NotNull String icon) {
this.icon = icon;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -76,4 +86,5 @@ public class Label {
result = 31 * result + (parent != null ? parent.hashCode() : 0);
return result;
}
}