Modelmapper always assumes the presents of POJO's getters/setters. I'd like to map complex immutable objs from and to immutable ojbs using the full(Lombok in my case) builders approach. How to instruct modelmapper to use the builder class of the inner objs when the root obj is mapped to the builder of the target class?

In my architecture I'd like to follow this pattern

input JSON to objectRepresentation deserialization

objRepresentation -> map -> objEntity -> map -> jooqRecord

jooqRecord -> unmap -> objEntity -> unmap -> objRepresentation

objRepresentation to JSON serialization

0 Answers