Replies: 1 comment
-
/cc @zakkak (native-image) |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it allowed to use Jackson (or JsonB) annotated classes for properties instead of getters?
I ask because field annotated methods may need some reflection and I don't know if this isn't ideal for native Quarkus builds. Currently, I have a bunch of classes annotated with Lombok's
@Getter
and@Setter
, so I use field annotations:If JSON annotations on getters (instead of fields) is the ideal way for quarkus (especially for Quarkus Native), it would be good to document this, e.g. here: https://quarkus.io/guides/rest-json#about-serialization.
Beta Was this translation helpful? Give feedback.
All reactions