projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.89k stars 2.39k forks source link

Feature request: Annotation to transform between transport and business objects #1338

Open judebert opened 7 years ago

judebert commented 7 years ago

I often separate my transport layer from my business logic layer, although they use very similar objects. Often their fields and types are identical. I frequently write boilerplate to construct one object from the other, or transform one into the other. I would really appreciate an annotation to do that instead.

Maaartinus commented 7 years ago

This can get arbitrarily complicated. Luckily, there's http://mapstruct.org and it works together with lombok.