@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof NewCategory)) return false; NewCategory that = (NewCategory) o; if (!description.equals(that.description)) return false; if (!name.equals(that.name)) return false; if (!orderHint.equals(that.orderHint)) return false; if (!parent.equals(that.parent)) return false; if (!slug.equals(that.slug)) return false; return true; }