I have a existing MongoDB and I need to write Java POJOs for all the collections.
Is there any tool which can auto-generate the POJOs from the mongo collections?
I am able to find tools to convert Mongo collections to JSON, but could not find a suitable way to convert the collections to Java POJOs.
using the http://www.jsonschema2pojo.org/
a json like:
will produce