验证Hibernate 5中的数据库架构 [英] Validate database schema in Hibernate 5
本文介绍了验证Hibernate 5中的数据库架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
休眠 3.x 具有方法 Configuration#validateSchema
,它可以验证当前数据库模式是否与对象模型匹配.但是在版本5中缺少该方法.如何在Hibernate 5中验证数据库模式?
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?
推荐答案
The functionality was extracted and is accessible through interface SchemaValidator.
这篇关于验证Hibernate 5中的数据库架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文