hibernate-ogm
hibernate-ogm copied to clipboard
OGM-571 Honor "hbm2ddl" setting to initialize and drop the schema
Hi, I have created a new pull request related to https://hibernate.atlassian.net/browse/OGM-571. This is it #1111. It does not solve the initial issue of lazy start of the mongodb datastore provider but maybe we can reach there after.
How come doesn't it solve the lazy initialization problem?
Because the start of the datastore provider has nothing to do with the creation of the schema. See MongoDBDatastoreProvider start method which extracts the database.
Sorry, I can't remember. Why did you use branch 5.3 instead of master?
Because I'm working with wildfly 13 with hibernate-core 5.3.1.Final
Also, removing the create database property is breaking backward compatibility so this change should impose the changing of the minor version at least