Multi-layered applications often require to map between different object models (e.g. entities and DTOs). Writing such mapping code is a tedious and error-prone task. MapStruct aims at simplifying this work by automating it as much as possible. In this post, I will give you an overview of MapStruct and the steps needed to integrate it into your project.