Validate database schema in Hibernate 5

匆匆过客 提交于 2021-02-05 11:54:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!