-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add Annotation to exclude Properties #118
Comments
I appreciate this, although we need to decide how to handle conflicting directives by defining some kind of precedence. Just to make it clear:
Suggestions? |
As for inheritance i'd say that the concrete class always wins over the super class. If the Setter of a super class and the Setter of an Interface are inherited and have a conflict, I suggest to handle it similar to default implementations in interfaces where you have to override the method and decide what to do in your own implementation. |
@mkarneim Feels like this discussion has ended and the request doesn't add value (without adding notable complexity to the end user)? I'm going through your issues to see what I might be able to help with, there's a lot of noise in here that needs triaging. |
While it is cool to be able to exclude properties in the main Annotation (especially with wildcards), it would often be more convenient, if there was an exclude Annotation to put on fields or setter methods.
It could be named something like
@ExcludeProperty
,@ExcludePojoBuilderProperty
or@ExcludeFromPojoBuilder
and should add exclusions exactly as if they were specified inGeneratePojoBuilder.excludeProperties
. An appropriate include Annotation would be cool too.The text was updated successfully, but these errors were encountered: