mapstruct / mapstruct-idea

An IntelliJ IDEA plugin for working with MapStruct
Other
142 stars 38 forks source link

When using Lombok in @Mapping's target, the expression field will lose the reference relationship #206

Closed 183461750 closed 1 month ago

183461750 commented 2 months ago

Screenshots of lost reference relationships :

image

Screenshots with reference relationships :

image

The expectation is that when used together with Lombok, the reference relationship can also be used normally.

Thank you !

filiphr commented 2 months ago

@183461750 The use of field extensions might be the cause why this is not working. That is something experimental from Lombok and we are not going to spend the effort in supporting it.

I would advise that you use regular string int he target and source.