diff --git a/build.gradle b/build.gradle index 93b4f9d..6ef15ab 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } group = 'com.nucleodb' -version = '1.13.22' +version = '1.13.23' repositories { mavenCentral() diff --git a/src/main/java/com/nucleodb/library/database/utils/Serializer.java b/src/main/java/com/nucleodb/library/database/utils/Serializer.java index 0a50666..346ba8a 100644 --- a/src/main/java/com/nucleodb/library/database/utils/Serializer.java +++ b/src/main/java/com/nucleodb/library/database/utils/Serializer.java @@ -11,6 +11,7 @@ public class Serializer{ public Serializer() { om = new ObjectMapper(); om.findAndRegisterModules(); + om.enableDefaultTyping(ObjectMapper.DefaultTyping.JAVA_LANG_OBJECT); om.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); }