Registry / serialization / jackson-datatype-hibernate5

jackson-datatype-hibernate5

JSON →
library2.21.3javamavenunverified

Jackson module to support Hibernate 5 data types, enabling proper serialization of Hibernate proxies and lazy-loaded collections.

<dependency> <groupId>com.fasterxml.jackson.datatype</groupId> <artifactId>jackson-datatype-hibernate5</artifactId> <version>2.21.3</version> </dependency>
INSTALL
IMPORT
SIG · JACKSON-DATATYPE-H
J
jackson-datatype-hibernate5
serializationjavav2.21.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Hibernate5Module
com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module

Registers the Hibernate5Module with Jackson ObjectMapper.

import com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module; import com.fasterxml.jackson.databind.ObjectMapper; ObjectMapper mapper = new ObjectMapper(); mapper.registerModule(new Hibernate5Module());
Debug
Known issues
gotchaHibernate5Module may cause infinite recursion if bidirectional relationships are not annotated with @JsonIgnore or @JsonManagedReference/@JsonBackReference.
fix
Use @JsonIgnoreProperties or @JsonManagedReference/@JsonBackReference on bidirectional associations.
affects: all
Upgrade
Version history
2.21.3latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
30
Resources
jackson-datatype-hibernate5 — mvn dependency:get jackson-datatype-hibernate5 · libregistry