Hibernate H2 specify drop table order
问题 I have pretty much the same problem like this user. Hibernate can't drop the tables of my in-memory test database after each SpringBootTest (e.g. when running mvn test). The desired behavior would be ddl-auto=create-drop , but this doesn't work. I think the reason could be an invalid order of the DROP TABLE statements, so that Hibernate tries to delete tables on which other tables still depend on. My data.sql script contains only INSERT statements and the schema is automatically created based