The ddl is applied every time the application starts, even if the table structure has not changed.
Reproduce the demoļ¼
[ https://github.com/rxxy/hibernate-HHH-17011-reproducer|https://github.com/rxxy/hibernate-HHH-17011-reproducer|smart-link]
For the h2 database, the second start will also print the alter statement to modify the datetime type
For the mysql database, the second startup will print the alter statement to modify the datetime and enumeration types
[ see also|https://discourse.hibernate.org/t/generate-ddl-every-time-at-startup/8004] |
|