Performance of Java Mapping Frameworks 1. Introduction Creating large Java applications composed of multiple layers require using multiple models such as persistence model, domain model or so-called DTOs. Using multiple models for different application layers will require us to provide a way of mapping between beans. Doing this manually can… Continue Reading java-performance-mapping-frameworks

Inheritance with Jackson 1. Overview In this article, we’ll have a look at working with class hierarchies in Jackson. Two typical use cases are the inclusion of subtype metadata and ignoring properties inherited from superclasses. We’re going to describe those two scenarios and a couple of circumstances where special treatment… Continue Reading jackson-inheritance

Jackson – Bidirectional Relationships 1. Overview In this tutorial, we’ll go over the best ways to deal with bidirectional relationships in Jackson. We’ll discuss the Jackson JSON infinite recursion problem, then – we’ll see how to serialize entities with bidirectional relationships and finally – we will deserialize them. 2. Infinite… Continue Reading jackson-bidirectional-relationships-and-infinite-recursion

Jackson JSON Views 1. Overview In this tutorial, we’ll go over how to use Jackson JSON Views to serialize/deserialize objects, customize the views and finally – how to start integrating with Spring. 2. Serialize Using JSON Views First – let’s go through a simple example – serialize an object with… Continue Reading jackson-json-view-annotation