Using hibernate-validator-4.2.0.Final.jar
and the ClassValidator
class is nowhere to be found inside of it. The official PDF for the 3.1.0.GA
release shows it as existing inside the org.hibernate.validator
package, but inside both my jar and the official repo it is not there.
This leads me to believe either:
- it has been deprecated in lieu of something else; or
- it has just been moved somewhere and I can t seem to find it!
如果对说明进行了解释,那么使用说明和检查某些内容是否有效的最佳方式是什么? 如果加以解释,则采用“old”方法:
ClassValidator<SomeBeanClass> validator = new ClassValidator<SomeBeanClass>();
SomeBeanClass bean = new SomeBeanClass();
// use bean
InvalidValues[] badVals = validator.getInvalidValues(bean);
And if its been moved, then where is it?!?! Thanks in advance!