mapstruct / mapstruct-idea

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

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

Open 183461750 opened 1 week ago

183461750 commented 1 week 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 1 week 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.