-
Notifications
You must be signed in to change notification settings - Fork 91
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 accessors without get
/is
/set
#1959
Comments
Maybe we could also extend this to support parameterised accessors, i.e. a field in a |
Please don't get me started on Lombok :) How would we tell whether the method annotated
This looks like just a different way to make a source field, but you would lose the batching option |
You're right. I haven't thought about that. So let's drop the parameterised getters. But then we can easily distinguish a getter from a setter by looking at the parameters: if it has none, it's a getter, otherwise a setter. And I think we don't have to find a counterpart, because a |
And what if you have a class that is both input and output? |
It still has getters for the Type and setters for the Input 😁 |
If it is both an input and output, and it has a method with |
I think I'll have to look at the code to see how complicated it would get. And IIRC, we use only the annotations from JSON-B, not the implementation. |
That is in the client. Server uses JSON-B itself |
Hmmm... and how do we force JSONB to consider the |
look at the |
Yes we use JSONB in the server. I still wanted to change that to only support the annotations and not directly the impl, and rather use Jackson, or make it plug-able, but I never got around to that. |
I see. So there is a metadata mechanism. Cool. |
In Java records, the components (a.k.a. properties) can be accessed without a
get
prefix as it was specified for JavaBeans. Lombok calls this prefix-less accessor style "fluent".We obviously don't want to support that style by default. But if I annotate any method with
@Name
or@JsonbProperty
, it should be added to the list of fields. But this doesn't work, yet.Additional Ideas:
@Generated
annotation).What do you think?
The text was updated successfully, but these errors were encountered: