mapstruct-idea icon indicating copy to clipboard operation
mapstruct-idea copied to clipboard

ignore withXZY fluent setter

Open jomu78 opened this issue 2 years ago • 1 comments

jomu78 avatar Aug 25 '23 22:08 jomu78

Thanks for this PR @jomu78. I like the idea of it. However, I would prefer if we do not tie ourselves to withXYZ. I would prefer if we offer users to define their own templates that would mark methods as ignored.

If possible this should also be a project specific configuration, since it is related to usage of a specific custom accessor naming strategy I guess.

Another alternative would also be to provide some kind of a hook point (e.g. providing templates in custom accessor naming strategy implementations) that would be able to define if some methods should be implemented or not. Then we can load and check those from the plugin if we have things in the project.

filiphr avatar Sep 10 '23 11:09 filiphr