최근에 MapStruct라는 것에 대해 알게 되었는데 이거 상당히 좋다.
국내에는 관련 글이 거의 없지만 해외쪽에 관련들 글들이 많아서 보고 있다.
다 좋은데 하나 아쉬운 점은 기본 생성자와 빌더를 통해서만 처리를 한다는 점이 아쉽다.
Reference
[1] 맛보기 https://stylishc.tistory.com/138
[2] Guide https://mapstruct.org/documentation/dev/reference/html/
[3] https://mapstruct.org/
[4] Example 1 https://www.credera.com/blog/technology-solutions/mapping-domain-data-transfer-objects-in-spring-boot-with-mapstruct/
[5] Example 2 https://github.com/mapstruct/mapstruct-examples
[6] Example 3 https://github.com/arberg/mapstruct-test
[7] Immutable 미지원 관련 https://github.com/mapstruct/mapstruct/issues/1755
MapStruct – Java bean mappings, the easy way!
Java bean mappings, the easy way! Get started Download
mapstruct.org
MapStruct 1.3.0.Final Reference Guide
The mapping of collection types (List, Set etc.) is done in the same way as mapping bean types, i.e. by defining mapping methods with the required source and target types in a mapper interface. MapStruct supports a wide range of iterable types from the Jav
mapstruct.org
MapStruct 맛보기
mapStruct mapStruct Summary & Why? 타입 세이프하게 bean 매핑을 도와주는 어노테&#..
stylishc.tistory.com