hibernate.hbm2ddl.auto: list possible values and explain them

Description

The documentation about the hibernate.hbm2ddl.auto property lists every possible values, but does not explain what they do.

I suggest providing a bullet list with a brief explanation about each possible value, focusing on these main questions:

  • What will happen to existing data? Is hbm2ddl going to truncate existing tables?

  • What will happen to existing tables? Is hbm2ddl going to drop existing tables?

  • What will happen after the SessionFactory is closed?

My (incomplete) proposal:

Automatically validates or exports schema DDL to the database when the SessionFactory is created.

e.g. validate | update | create | create-drop

Environment

None

Status

Assignee

Unassigned

Reporter

Danilo Piazzalunga

Fix versions

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.3.0.CR2

Priority

Minor
Configure