From 302822e8f2c33c88b2d8472a1fb19d4c77ad2d23 Mon Sep 17 00:00:00 2001 From: Sonali Shakya Date: Thu, 12 Dec 2024 13:20:19 +0530 Subject: [PATCH] Resquest Response saving juntos --- .../yugabyte_integration/Entity/Payload.java | 35 +++++++++--------- .../Service/PayloadService.java | 4 +- .../yugabyte_integration/Entity/Payload.class | Bin 7092 -> 6996 bytes .../Service/PayloadService.class | Bin 5227 -> 5062 bytes 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Entity/Payload.java b/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Entity/Payload.java index 065435e..9223f68 100644 --- a/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Entity/Payload.java +++ b/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Entity/Payload.java @@ -28,9 +28,10 @@ public class Payload { @Convert(converter = MapToJsonConverter.class) @Column(columnDefinition = "text") - private Map jsonObject; - - private Type type; + private Map jsonRequest; + @Convert(converter = MapToJsonConverter.class) + @Column(columnDefinition = "text") + private Map jsonResponse; private Integer httpStatus; private Timestamp createdAt; private Timestamp updatedAt; @@ -123,13 +124,22 @@ public void setAction(Action action) { this.action = action; } - @Column(name = "jsonObject") - public Map getJsonObject() { - return jsonObject; + @Column(name = "jsonRequest") + public Map getJsonRequest() { + return jsonRequest; } - public void setJsonObject(Map jsonObject) { - this.jsonObject = jsonObject; + public void setJsonRequest(Map jsonRequest) { + this.jsonRequest = jsonRequest; + } + + @Column(name = "jsonResponse") + public Map getJsonResponse() { + return jsonResponse; + } + + public void setJsonResponse(Map jsonResponse) { + this.jsonResponse = jsonResponse; } @Column(name = "bpp_id") @@ -150,15 +160,6 @@ public void setBapId(String bapId) { this.bapId = bapId; } - @Column(name = "type") - public Type getType() { - return type; - } - - public void setType(Type type) { - this.type = type; - } - @Column(name = "http_status") public Integer getHttpStatus() { return httpStatus; diff --git a/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Service/PayloadService.java b/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Service/PayloadService.java index 02f9b4e..a224108 100644 --- a/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Service/PayloadService.java +++ b/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Service/PayloadService.java @@ -44,8 +44,8 @@ public Payload updatePayload(Long id, Payload updatedPayload) { existingPayload.setAction(updatedPayload.getAction()); existingPayload.setBppId(updatedPayload.getBppId()); existingPayload.setBapId(updatedPayload.getBapId()); - existingPayload.setJsonObject(updatedPayload.getJsonObject()); - existingPayload.setType(updatedPayload.getType()); + existingPayload.setJsonRequest(updatedPayload.getJsonRequest()); + existingPayload.setJsonResponse(updatedPayload.getJsonResponse()); existingPayload.setHttpStatus(updatedPayload.getHttpStatus()); return repository.save(existingPayload); }) diff --git a/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Entity/Payload.class b/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Entity/Payload.class index 1c020955888ffe3c219ff478df5a17893300e18b..e44eb2bd6cb983ac92f4f7ba5b7dd52e2ab751ed 100644 GIT binary patch literal 6996 zcmdT}>vJ1d6+i2TWXmgCb{scKQa2$cIBIGoY27q+65{4n8`}}FW15y?*3z}Jj+~0ZL zbEAL%=dXV!qGR+?oZ2)RSToj*tb3)HT`)_+^^8(EK^@c?re47BDT;=*nw{Tp zJyFuAKVNYiVR_6lYZi;9t5N&tzUc&Ml+dY%bd6$1P0RF-Yt%71y>GFbdZ{l?DV_Rh zK%@P6yOg!9LO#1uSv8h7Jh5b2o>+AZ&$O-VY0ERcjcm@?DB4Crqwc&T3{Mm$J&guu zZbv-9;sMrn=OOvp(oUa8BBZLLba9Xjo#d%*|wU1L>Dfp8!| zIPW>8PkNtDyO=cTIfmsLc?LUG;A1|a(;nW5trYF6YUz_Y?WIp)NzrLEK658pk4#GO z65>9cGIYO2J!`IQoflUsaFj-U3S`AIi`iMDEGZw*X^bg#Md_Ap%M}dpfKCS)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