Jackson + MongoDB's ObjectId

This two classes should help you change the way Jackson serialization works for MongoDB's ObjectId. If you don't annotate your ObjectId fields with this classes, you should be receiving something like this:


In my case, I needed my ObjectId's as:


Well, here are the classes:

No hay comentarios:

Publicar un comentario