Since Mapstruct version 1.3.0.Final is out, we are able to better integrate with Lombok Builder pattern. Mapstruct is a library that takes away a lot of boilerplate code for mapping between POJO’s. With Mapstruct there is no need for implementing the real mapping itself.
With Lombok we can use a
Builder pattern and mark an object as a
Value(Object). It will result in an immutable object.
This blog post shows how we can use Mapstruct to use the
Builder pattern of Lombok.