Skip to content

Commit aea61d0

Browse files
committed
[hibernate#1984] Replace toString with JsonObject#encode
1 parent b347a11 commit aea61d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/type/descriptor/jdbc/ReactiveJsonJdbcType.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ private static String toJsonString(Object value) {
8686
if ( value == null ) {
8787
return null;
8888
}
89-
// Value should be a JsonObject
90-
return value.toString();
89+
return ( (JsonObject) value ).encode();
9190
}
9291
}

0 commit comments

Comments
 (0)