How do i maintain cache object during JsonSerialize #3922
Unanswered
sathyavelz
asked this question in
Q&A
Replies: 2 comments 3 replies
-
@sathyavelz You might consider using |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beside what @JooHyukKim suggested, you might be able to change That annotation basically means that whatever annotated method returns will be included as-is in output. So if that is serialized JSON, that'll be inserted -- so if you construct serialization on first call, retained in |
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
-
Consider, i have a pojo like this
The JSON would be
In LongToNameConverter serializer i fetch name for the person from DB, here each time i need to fecth name for the user, is it possible to cache the idVsName and can be use in the LongToNameConverter seralizer
Beta Was this translation helpful? Give feedback.
All reactions