Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add configuration key lombok.builder.toBuilder #3758

Open
mmefremov opened this issue Oct 8, 2024 · 0 comments
Open

[FEATURE] Add configuration key lombok.builder.toBuilder #3758

mmefremov opened this issue Oct 8, 2024 · 0 comments

Comments

@mmefremov
Copy link

According to the testing methodology adopted in the company, the template of test object is created before the tests. Then in each test, only one field of the copy recieved via toBuilder is changed. When testing GrapgQL services, we get POJO classes by generating code using mapstruct-processor and lombok-mapstruct-binding. We have encountered a problem that it is not possible to enable toBuilder in any way in this case. Please consider adding an appropriate configuration key to lombok.config that sets toBuilder = true by default for all classes in scope

lombok.builder.toBuilder = true

This will give developers more control over the result of code generation, especially on testing projects.

@mmefremov mmefremov changed the title [FEATURE] [FEATURE] Add configuration key lombok.builder.toBuilder Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant