Tag mongodb

Polymorphic Class Serialization in Spring and MongoDB

Polymorphic Faces.

I was recently faced with the perplexing problem of making Spring and MongoDB serialize/deserialize a polymorphic class. Initially, it seemed like a simple task, but it proved to be more complicated than anticipated. Allow me to share my solution.