From bdca1227a0d30754353f7e51f60b1d9c2f54fc93 Mon Sep 17 00:00:00 2001 From: Sudharshan <55235454+sudharshan-bandaru@users.noreply.github.com> Date: Thu, 24 Sep 2020 09:13:47 +0200 Subject: [PATCH] Removed the duplication of Ttl fields in /Infromation RestApi (#476) Removed the duplication of ttl fields --- src/main/java/com/ericsson/ei/handlers/ObjectHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/ericsson/ei/handlers/ObjectHandler.java b/src/main/java/com/ericsson/ei/handlers/ObjectHandler.java index 0b6cd391a..c0e89a3cf 100644 --- a/src/main/java/com/ericsson/ei/handlers/ObjectHandler.java +++ b/src/main/java/com/ericsson/ei/handlers/ObjectHandler.java @@ -30,6 +30,7 @@ import com.ericsson.ei.jmespath.JmesPathInterface; import com.ericsson.ei.rules.RulesObject; import com.ericsson.ei.subscription.SubscriptionHandler; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -254,6 +255,7 @@ public String lockDocument(String id) { * @return ttl * Integer value representing time to live for documents * */ + @JsonIgnore public int getTtl() { int ttl = 0; if (ttlValue != null && !ttlValue.isEmpty()) {