Replies: 2 comments
-
It would be great to get rid of the builder classes and just add Lombok @builder annotation instead. Especially if toBuilder attribute is used: @builder(toBuilder = true). |
Beta Was this translation helpful? Give feedback.
0 replies
-
I tend to add support for lombok annotations, with existing pojo naming unchanged. To be honest, lombok relies on plugins and can provide support, but it should not be the only choice |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After generating my classes, I found out that the Builder classes that are generated have setters with the below structure,
public Builder setVersion(Long version)
Instead of this, Is it possible to have it as below,
public Builder version(Long version)
This is something the Lombok does today for us.
I have a great part of my code following this way,
builder().version(...).build();
Beta Was this translation helpful? Give feedback.
All reactions