quarkus: Hibernate hbm2ddl in application.properties is not working as mentioned
Describe the bug Hibernate hbm2ddl in application.properties is not working as mentioned
Expected behavior
# drop and create the database at startup (use `update` to only update the schema)
quarkus.hibernate-orm.database.generation=drop-and-create
This is mentioned in the documentation. It should work with update.
Actual behavior “update” not working. It would still create the tables.
To Reproduce Steps to reproduce the behavior:
- https://github.com/SetoKaiba/code-with-quarkus
- MySQL 8.0.16
- Windows OS. Chinese.
Configuration
# Add your application.properties here, if applicable.
Screenshots (If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
- Output of
uname -a
orver
: - Output of
java -version
: - GraalVM version (if different from Java):
- Quarkus version or git rev:
Additional context (Add any other context about the problem here.)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (10 by maintainers)
I have opened https://hibernate.atlassian.net/browse/HHH-13788
Andrea confirmed it’s an Hibernate ORM issue due to the usage of
hibernate.temp.use_jdbc_metadata_defaults=false
in Quarkus.He’s going to work on it.