hibernate-ogm icon indicating copy to clipboard operation
hibernate-ogm copied to clipboard

OGM-571 Honor "hbm2ddl" setting to initialize and drop the schema

Open ggaborg opened this issue 6 years ago • 5 comments
trafficstars

ggaborg avatar Jun 18 '19 09:06 ggaborg

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?

DavideD avatar Jun 18 '19 09:06 DavideD

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.

ggaborg avatar Jun 18 '19 11:06 ggaborg

Sorry, I can't remember. Why did you use branch 5.3 instead of master?

DavideD avatar Jun 19 '19 12:06 DavideD

Because I'm working with wildfly 13 with hibernate-core 5.3.1.Final

ggaborg avatar Jun 19 '19 12:06 ggaborg

Also, removing the create database property is breaking backward compatibility so this change should impose the changing of the minor version at least

ggaborg avatar Jun 19 '19 13:06 ggaborg