From 33258a9c494274d274cc3009cafe0491c814022b Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Wed, 16 Aug 2023 20:03:32 +0200 Subject: [PATCH] HHH-17098 Auto-discover ObjectMapper modules for JacksonJsonFormatMapper --- .../hibernate/type/format/jackson/JacksonJsonFormatMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/type/format/jackson/JacksonJsonFormatMapper.java b/hibernate-core/src/main/java/org/hibernate/type/format/jackson/JacksonJsonFormatMapper.java index 7a18e23d90..76bbb7a41d 100644 --- a/hibernate-core/src/main/java/org/hibernate/type/format/jackson/JacksonJsonFormatMapper.java +++ b/hibernate-core/src/main/java/org/hibernate/type/format/jackson/JacksonJsonFormatMapper.java @@ -23,7 +23,7 @@ public final class JacksonJsonFormatMapper implements FormatMapper { private final ObjectMapper objectMapper; public JacksonJsonFormatMapper() { - this(new ObjectMapper()); + this(new ObjectMapper().findAndRegisterModules()); } public JacksonJsonFormatMapper(ObjectMapper objectMapper) {