- if (compareValues(getName(), other.getName()) && compareValues(getDomainid(), other.getDomainid())
- && compareValues(getDescription(), other.getDescription())) {
+
+ Domain other = (Domain) obj;
+ if (Objects.equals(getName(), other.getName()) && Objects.equals(getDomainid(), other.getDomainid())
+ && Objects.equals(getDescription(), other.getDescription())) {