简体   繁体   English

gwt 2.7支持的最新版hibernate-validator是什么?

[英]What is the newest version of hibernate-validator that gwt 2.7 support?

I've red in official documentation here , which says to use Hibernate validator 4.1.0.Final which is 5 years old. 我在这里的官方文档中有红色,它说要使用5年前的Hibernate validator 4.1.0.Final

  • I am not sure is old documentation or mistake? 我不确定是旧文件还是错误?

  • What version should I use? 我应该使用什么版本?

  • And If I should use proposed version, I would like to know why gwt dosen't support newer version? 如果我应该使用建议的版本,我想知道为什么gwt不支持更新的版本?

GWT only supports Hibernate Validator 4.1.0.Final, for client-side validation. GWT 支持Hibernate Validator 4.1.0.Final,用于客户端验证。 Server side can use whichever version you want (a priori). 服务器端可以使用您想要的任何版本(先验)。

The reason GWT doesn't support a newer version is that nobody ever invested enough time to update. GWT不支持更新版本的原因是没有人投入足够的时间来更新。 GWT has dependencies on HV internals so it's not as easy as switching versions. GWT依赖于HV内部,因此它不像切换版本那么容易。
In the future, the GWT team would like to move validation out into a separate project that could either be picked up by the community and maintained, or die. 在未来,GWT团队希望将验证转移到一个单独的项目中,该项目可以由社区获取并维护或死亡。

For now, unless you think you could step in as a maintainer, I wouldn't recommend using javax.validation on the client side. 目前,除非您认为可以介入维护者,否则我不建议在客户端使用javax.validation。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM