-
Notifications
You must be signed in to change notification settings - Fork 39
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
provide @JsonbTransient on class level #213
Comments
Hi @nimo23, you can do it with the visibility api. I think it matches more a custom need like that cause this looks less natural and highly error prone compared to putting jsonbtransient per field. |
With visibility api, you cannot include/exclude specific fields/methods.
I dont think so. I described the benefits when putting it on class level. Btw, Jackson already has an annotation like that:
Highly error prone? Why? Then something like this should also be considered highly error prone:
|
Ok, here are the points to take in consideration IMHO:
Hope it explains more where I am coming from. |
No. But with this, the user can set and see all transient properties at a glance. And it avoids cluttering/polluting the class with a bunch of @JsonbTransient at each property/method.
Unfortunately, not. But
Do you mean
It is a legal jackson annotation with reasonable use cases. If not, it would not exist. I dont know what you mean with mainstream.
I am only talking about json-b spec. Only because it does not exit in json-b yet, does not mean that users have no need for that.
I dont know what you mean. |
|
I agree with @rmannibucau here -- I don't like how the
Regarding this point:
We have an issue open for doing all JSON-B customizations programatically without modifying the source class at all here: #88 |
@rmannibucau, @aguibert Yes, you are right. Now I understand. Thanks for explanation.
yes, absolutly. Thanks! |
Please provide
@JsonbTransient
on class level to list all properties which should be ignored for (de)serializing:With this, the user can set and see all transient properties at a glance. And it avoids cluttering/polluting the class with a bunch of
@JsonbTransient
at each property/method.Another solution could be:
The text was updated successfully, but these errors were encountered: