Converter Pattern in Java 8
This is a common problem: to have to convert pairs of similar objects one to another and the other way round. In this case, what we need is a one-shot conversion, to convert just once in the object’s lifetime. What we do not want is coupling between the two kinds of objects: DTO classes shouldn’t “know” about domain classes and the other way round.