From c843d7a64b0dfc7dedad86a5ea254f3d10bb8753 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 22 May 2024 16:29:21 +0200 Subject: [PATCH] [FIX] correct the size of ErrorRespose and remove needed of UUID --- src/org/kar/archidata/catcher/RestErrorResponse.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/kar/archidata/catcher/RestErrorResponse.java b/src/org/kar/archidata/catcher/RestErrorResponse.java index 5cd8a39..246a794 100644 --- a/src/org/kar/archidata/catcher/RestErrorResponse.java +++ b/src/org/kar/archidata/catcher/RestErrorResponse.java @@ -5,21 +5,25 @@ import java.util.UUID; import org.kar.archidata.tools.UuidUtils; +import jakarta.persistence.Column; import jakarta.validation.constraints.NotNull; import jakarta.ws.rs.core.Response; public class RestErrorResponse { - @NotNull public UUID uuid = UuidUtils.nextUUID(); @NotNull + @Column(length = 0) public String name; // Mandatory for TS generic error @NotNull + @Column(length = 0) public String message; // Mandatory for TS generic error @NotNull + @Column(length = 0) public String time; @NotNull final public int status; @NotNull + @Column(length = 0) final public String statusMessage; public RestErrorResponse(final Response.Status status, final String time, final String error,