DEV Community

Discussion on: Convert entity to DTO in Springboot

Collapse
 
miso profile image
Michael

Hey Aastha! Great post!
Did you check out Mapstruct? I used it in my last project!
How do ModelMapper deal with nested fields or with different names of the same property?

Collapse
 
aasthapandey profile image
Aastha Pandey

Hi Michael!
I've heard about Mapstruct but never used it and never dealt with nested fields as well so have I no idea, will definitely edit the post, once I get to know about these things.

Collapse
 
aasthapandey profile image
Aastha Pandey

Hey Michael!
Could you give me some examples of different names of the same property, some code or some link for reference.