问题
Hibernate 4.x and 3.x has method Configuration#validateSchema
that allows to verify that current database schema matches the object model. However the method is missing in version 5. How the database schema can be validated in Hibernate 5?
回答1:
The functionality was extracted and is accessible through interface SchemaValidator.
来源:https://stackoverflow.com/questions/42013850/validate-database-schema-in-hibernate-5