Replies: 0 comments 2 replies
-
The whole point of using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, great work!
Any possibility of changing
Mappable.read()
to use something more like the JacksonJsonDeserializer
instead of the current design?Right now it is difficult or impossible to use with entities that include final fields. The change would allow us to handle entity initialization through an existing constructor.
One possibility would be to replace
void read(NitriteMapper, Document)
with a@Deserializer
annotation on theMappable
entity that gives you theMappableDeserializer
implementation to use. Then have theMappableDeserializer<T>
interface includeT deserialize(NitriteMapper, Document);
. I believe this would allow you to deserialize entities without having to create an instance of them first.Beta Was this translation helpful? Give feedback.
All reactions