hibernate.hbm2ddl.auto option 'create-only' not recognized

Description

Despite documentation (http://docs.jboss.org/hibernate/orm/5.0/userguide/html_single/Hibernate_User_Guide.html#configurations-hbmddl) saying 'create-only' is a valid value for the hibernate.hbm2ddl.auto property, it is not recognized.

Test case in this repo: https://github.com/ahumellihuk/hibernate-test-case-templates

Environment

None

Activity

Show:
Guillaume Smet
September 5, 2018, 12:34 PM

Do you have some clear evidence or even better a test case?

You can find our test case template here: https://github.com/hibernate/hibernate-test-case-templates/tree/master/orm/hibernate-orm-5 .

You will have to downgrade ORM in the template.

Dmitri Samoilov
September 5, 2018, 4:18 PM

I've forked the test case template repo and changed a single property value - when I run 'mvn verify' the tests run successfully, but you get a warning message: "WARN SessionFactoryOptionsBuilder:394 - Unrecognized hbm2ddl_auto value : create-only. Supported values include 'create', 'create-drop', 'update', 'none' and 'validate'. Ignoring". Please find the forked repo here: https://github.com/ahumellihuk/hibernate-test-case-templates

Guillaume Smet
October 11, 2018, 11:28 AM

Yeah, it seems you're right. The class is not in sync with this other one https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/tool/schema/Action.java#L17 which is the one really doing the work.

The SchemaAutoTooling class is just here to provide some values to some deprecated Settings class.

Adding this one to the 5.4.0 planning.

Assignee

Guillaume Smet

Reporter

Dmitri Samoilov

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Minor
Configure