From b5e9cb296350c27dd277b3aeac80fc9247bb16c5 Mon Sep 17 00:00:00 2001 From: Davide D'Alto Date: Fri, 27 Sep 2024 14:07:43 +0200 Subject: [PATCH] [#1984] Replace `toString` with `JsonObject#encode` --- .../reactive/type/descriptor/jdbc/ReactiveJsonJdbcType.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hibernate-reactive-core/src/main/java/org/hibernate/reactive/type/descriptor/jdbc/ReactiveJsonJdbcType.java b/hibernate-reactive-core/src/main/java/org/hibernate/reactive/type/descriptor/jdbc/ReactiveJsonJdbcType.java index 1c31755bb..3600674cc 100644 --- a/hibernate-reactive-core/src/main/java/org/hibernate/reactive/type/descriptor/jdbc/ReactiveJsonJdbcType.java +++ b/hibernate-reactive-core/src/main/java/org/hibernate/reactive/type/descriptor/jdbc/ReactiveJsonJdbcType.java @@ -86,7 +86,6 @@ private static String toJsonString(Object value) { if ( value == null ) { return null; } - // Value should be a JsonObject - return value.toString(); + return ( (JsonObject) value ).encode(); } }