You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have the use case of wanting to persist generic types. (Ex: Document<SomeObject>).
At runtime, after type erasure, the enclosing type is actually lost and so Catatumbo fail to be able to read the fields and annotations.
I was wondering if it was of some interest to support this behaviour?
(Not just us I mean 😄)
@spullabhotla Do you think it would be worthwhile to take a look at implementing that? (It might require a new set of methods in EntityManager so I'm not sure whether you want that feature or think about anything else...)
The text was updated successfully, but these errors were encountered:
Hello,
We have the use case of wanting to persist generic types. (Ex:
Document<SomeObject>
).At runtime, after type erasure, the enclosing type is actually lost and so Catatumbo fail to be able to read the fields and annotations.
From reading and using
Gson
library, they solve this by accepting aParameterizedType
during Serialization/Deserialization: https://github.com/google/gson/blob/master/UserGuide.md#TOC-Serializing-and-Deserializing-Generic-TypesI was wondering if it was of some interest to support this behaviour?
(Not just us I mean 😄)
@spullabhotla Do you think it would be worthwhile to take a look at implementing that? (It might require a new set of methods in
EntityManager
so I'm not sure whether you want that feature or think about anything else...)The text was updated successfully, but these errors were encountered: