What is the easiest way to use Jackson 3

What is the “oneliner” for instructing Hibernate to use Jackson 3 for JSON?

I find this: Hibernate ORM User Guide

But I simply want a simple snippet of code that works for our Spring boot 4 app, using Hibernate.

Support for Jackson 3 is not yet done. See HHH-19890 Add Jackson 3 FormatMapper support by nrayburn-tech · Pull Request #11357 · hibernate/hibernate-orm · GitHub

OK, thanks! We need it for Kotlin. Would be great if the mapper Hibernate uses for the JSON columns uses registerKotlinModule etc. / sane defaults for the mapper for Kotlin.

Since FormatMapper is an SPI, you can implement your own version if you need this now or for earlier versions of Hibernate ORM. Note that we don’t backport enhancements to older versions.

We are “bleeding edge” :slight_smile: So we use milestones/snapshot versions if they offer something we need. We can test out the Jackson 3 Hibernate support once there is a snapshot/milestone available

1 Like