I am new to Mapstruct and am having issues in a particular usecase
so, if my source attribute have hotmail.com my target attribute should receive "personal" and if my source has facebook.com my target should receive "corporate".
I was trying to use expression but couldn't get my way around it. how do i do it?
@Mapping(source = "user.email", target = "emailType")
NewDTO myMapperMethod(MyRequest req);
emailandlink? Do you have those ? - Vinay Hegde