-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support builderClassName in @SuperBuilder #2370
Comments
There is a reason why there is no such parameter:
So all in all this is too complex both for users and for us to maintain. That being said, could you describe your usecase? Maybe we could find another solution. |
PS: Allowing setting this via config is kind of a compromise: It will change the names consistently, so unless you use SuperBuilder across project borders it will just work. |
It'd have to be one heck of a use-case, given the complexities as @janrieke stated. I'm pre-closing this, but feel free to answer with novel solutions or dire use cases and we can always re-evaluate :) |
@janmaterne @rzwitserloot Those reasons make perfect sense! I would agree it's not applicable to be able to change the name of the builder class when using To elaborate though, my use case is I want some of my models to be extendable (hence I'm also aware of the recent Thank you for your quick responses and great work :) |
|
|
@janrieke Sweet, thank you! |
@janrieke, What about field-level Jackson annotation? |
@Bittuw In 1.18.12, only
Are you missing another annotation in that list? |
@janrieke, Hmm, for my classes |
As already said in #2479, it's probably because the current edge does not contain that feature, yet. It's only in the sourcecode of the master branch at the moment. |
@janrieke. Thanks for your great work. |
I don't see why that should not be working with the current edge snapshot, as |
Describe the feature
The
@Builder
annotation supports thebuilderClassName
parameter. I would be nice it@SuperBuilder
did as well.Additional context
I did check the latest version of Lombok and didn't see the parameter in there. However, it does appear that this option is supported through the config file, as shown in HandleSuperBuilder.java.
The text was updated successfully, but these errors were encountered: