-
I am using MicroStream version 7 with Spring Boot integration. I am encountering an issue with persisting / restoring instances of a subclass of
When restarting the Spring Boot application that contains the code above, the Interestingly, if I modify the constructor for
Does anybody have any idea why instances of the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The problem arises because you extended the LinkedHashMap class. The LinkedHashMap requires a specialized type-handler because of its complexity that can’t be handled by our generic type-handler any more. You have two options to solve that:
When using the HashSet everything works because we provide a specialized handler for that class by default. |
Beta Was this translation helpful? Give feedback.
-
Thank you for looking into this issue, @hg-ms, and for your insights here. |
Beta Was this translation helpful? Give feedback.
-
I replaced the original
However, I am still seeing the same issue as before, which is that the |
Beta Was this translation helpful? Give feedback.
The problem arises because you extended the LinkedHashMap class. The LinkedHashMap requires a specialized type-handler because of its complexity that can’t be handled by our generic type-handler any more.
The private SetFromMap type retuned from Collections.newSetFromMap() may need a custom type- handler too.
You have two options to solve that:
When using the HashSet everything works because we provide a spec…