In Spring Boot 2, having thespring.jpa.generate-ddl property set to true did not perform any updates as long as the corresponding hibernate properties (hibernate.hbm2ddl.auto) were not explicitly set. When updating to Spring Boot 3, the same does not apply; the schema update does take place and the Hibernate sql statement is printed to the logs (show-sql=true). Here's a git repo where the issue can be demonstrated. Steps to duplicate are in the README.
Hibernate Java Docs also indicate that if no value is provided, the default for hibernate.hbm2ddl.auto is none
https://github.com/nateha1984/ubiquitous-spork
In Spring Boot 2, having the
spring.jpa.generate-ddlproperty set totruedid not perform any updates as long as the corresponding hibernate properties (hibernate.hbm2ddl.auto) were not explicitly set. When updating to Spring Boot 3, the same does not apply; the schema update does take place and the Hibernate sql statement is printed to the logs (show-sql=true). Here's a git repo where the issue can be demonstrated. Steps to duplicate are in the README.Hibernate Java Docs also indicate that if no value is provided, the default for
hibernate.hbm2ddl.autoisnonehttps://github.com/nateha1984/ubiquitous-spork