diff options
author | Sotiropoulos, Ioannis (is948x) <Ioannis.Sotiropoulos@amdocs.com> | 2018-06-15 15:32:01 +0100 |
---|---|---|
committer | Michael Arrastia <MArrasti@amdocs.com> | 2018-06-18 11:33:18 +0100 |
commit | b348af8ed2c4192f88169b37bf53fa25b8a7a681 (patch) | |
tree | 3ce66feb7909f645536a8d0eb5ad2a7879d3ab6c /src/main/java/org/onap/crud/event/GraphEvent.java | |
parent | 00832f054dd0c21492af531548e321ea25cdb8b4 (diff) |
ETags on resources
An etag should be generated (by Champ) when creating
a resource (edge or vertex). The Champ microservice should return
this etag in the response header. Gizmo should also return the etag
in it's response header (Gizmo will receive the etag from Champ).
Issue-ID: AAI-1196
Change-Id: Ie16f871eccbceeccde037e73e0de0d96eeba18bd
Signed-off-by: Sotiropoulos, Ioannis (is948x) <Ioannis.Sotiropoulos@amdocs.com>
Diffstat (limited to 'src/main/java/org/onap/crud/event/GraphEvent.java')
-rw-r--r-- | src/main/java/org/onap/crud/event/GraphEvent.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/main/java/org/onap/crud/event/GraphEvent.java b/src/main/java/org/onap/crud/event/GraphEvent.java index 63b84fd..958c227 100644 --- a/src/main/java/org/onap/crud/event/GraphEvent.java +++ b/src/main/java/org/onap/crud/event/GraphEvent.java @@ -20,14 +20,13 @@ */ package org.onap.crud.event; +import java.util.Objects; +import javax.ws.rs.core.Response.Status; +import org.onap.crud.exception.CrudException; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.annotations.SerializedName; -import org.onap.crud.exception.CrudException; - -import javax.ws.rs.core.Response.Status; - public class GraphEvent { public enum GraphEventOperation { @@ -171,9 +170,14 @@ public class GraphEvent { @Override public String toString() { - return toJson(); } + + @Override + public int hashCode() { + return Objects.hash(this.dbTransactionId, this.timestamp, this.edge, this.vertex, this.operation, + this.result); + } public String getObjectKey() { if (this.getVertex() != null) { |