summaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-dao/src/main')
-rw-r--r--catalog-dao/src/main/java/org/openecomp/sdc/be/dao/graph/datatype/GraphRelation.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/graph/datatype/GraphRelation.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/graph/datatype/GraphRelation.java
index 0c6b66f6d9..3249f37b31 100644
--- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/graph/datatype/GraphRelation.java
+++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/graph/datatype/GraphRelation.java
@@ -22,6 +22,7 @@ package org.openecomp.sdc.be.dao.graph.datatype;
import java.util.HashMap;
import java.util.Map;
+import org.apache.commons.lang3.builder.EqualsBuilder;
public class GraphRelation extends GraphElement {
@@ -105,4 +106,21 @@ public class GraphRelation extends GraphElement {
result = prime * result + ((type == null) ? 0 : type.hashCode());
return result;
}
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+
+ if (obj == null)
+ return false;
+
+ if (!(obj instanceof GraphRelation)) {
+ return false;
+ }
+
+ GraphRelation other = (GraphRelation) obj;
+
+ return new EqualsBuilder().append(from, other.from).append(properties, other.properties).append(to, other.to).append(type, other.type).isEquals();
+ }
}