I've found a strange problem (maybe a bug) that is caused when a database on MongoDB is created by an external programBasically i've created on my Centos Linux a mongoDB database. I've deployed my war that points to that DB and i receive

OGM001219: Database "envi" does not exist. Either create it yourself or set property 'hibernate.ogm.datastore.create_database' to true.

But the database exists and i can connect with my mongo client. Not only. The connection was successfully established by java code (i can see the connection in mongod.log) but the code was failing during .buildMetadata() in this code:

So i've decided to set that property to true and i get no more errors. The driver has recognized the database, has also created the indexes on the existent tables but then the tables has been erased... Can this could be a bug?