注解
应用目标
运行时检查
Hibernate元数据效果
@Length(min=, max=) |
property (String) |
check if the string length match the range |
Column length will be set to max |
@Length(min=, max=) |
property (String) |
检查字符串长度是否符合范围 |
列长度会被设到最大值 |
@Max(value=) |
property (numeric or string representation of a numeric) |
check if the value is less than or equals to max |
Add a check constraint on the column |
@Max(value=) |
property (numeric or string representation of a numeric) |
检查值是否小于或等于最大值 |
对列增加一个检查约束 |
@Min(value=) |
property (numeric or string representation of a numeric) |
check if the value is more than or equals to min |
Add a check constraint on the column |
@Min(value=) |
property (numeric or string representation of a numeric) |
检查值是否大于或等于最小值 |
对列增加一个检查约束 |
@NotNull |
property |
check if the value is not null |
Column(s) are not null |
@NotNull |
property |
检查值是否非空(not null) |
列不为空 |
@Past |
property (date or calendar) |
check if the date is in the past |
Add a check constraint on the column |
@Past |
property (date or calendar) |
检查日期是否是过去时 |
对列增加一个检查约束 |
@Future |
property (date or calendar) |
check if the date is in the future |
none |
@Future |
property (date or calendar) |
检查日期是否是将来时 |
none |
@Pattern(regex="regexp", flag=) |
property (string) |
check if the property match the regular expression given a match flag (see java.util.regex.Pattern
) |
none |
@Pattern(regex="regexp", flag=) |
property (string) |
检查属性是否与给定匹配标志的正则表达式相匹配(见 java.util.regex.Pattern
) |
none |
@Range(min=, max=) |
property (numeric or string representation of a numeric) |
check if the value is between min and max (included) |
Add a check constraint on the column |
@Range(min=, max=) |
property (numeric or string representation of a numeric) |
检查值是否在最小和最大值之间(包括临界值) |
对列增加一个检查约束 |
@Size(min=, max=) |
property (array, collection, map) |
check if the element size is between min and max(included) |
none |
@Size(min=, max=) |
property (array, collection, map) |
检查元素大小是否在最小和最大值之间(包括临界值) |
none |
@AssertFalse |
property |
check that the method evaluates to false (useful forconstraints expressed in code rather than annotations) |
none |
@AssertFalse |
property |
检查方法的演算结果是否为false(对以代码方式而不是注解表示的约束很有用) |
none |
@AssertTrue |
property |
check that the method evaluates to true (useful for constraints expressed in code rather than annotations) |
none |
@AssertTrue |
property |
检查方法的演算结果是否为true(对以代码方式而不是注解表示的约束很有用) |
none |
@Valid |
property (object) |
Perform validation recursively on the associatedobject |
none |
@Valid |
property (object) |
对关联对象递归的进行验证 |
none |
相关推荐
jquery.validate.1.9.0.min.js jquery.validate.1.12.0.min.js jquery.validate.1.13.1.min.js jquery.validate.1.16.0.min.js jquery.validate.1.14.0.min.js jquery.validate.1.15.1.min.js jquery.validate....
validate()可以指定校验范围内,或者是全局的 字段。而validateAll()只能校验全局。这篇文章主要介绍了vue+VeeValidate 校验范围(部分校验,全部校验) ,需要的朋友可以参考下
这是一个关于jquery_validate插件学习的总结,内容不多,但是都是干货,有兴趣的可以看一下。
jQuery Validate 插件为表单提供了强大的验证功能,让客户端表单验证变得更简单,同时提供了大量的定制选项,满足应用程序各种需求。该插件捆绑了一套有用的验证方法,包括 URL 和电子邮件验证,同时提供了一个用来...
jquery-validate 可对前端form进行表单校验,文档里详细介绍了如何使用jquery-validate框架和如何扩展验证方法。
jquery.validate.js * * jQuery validation plug-in 1.7 * * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ * http://docs.jquery.com/Plugins/Validation * * Copyright (c) 2006 - 2008...
jQuery Validate jQuery Validate 插件为表单提供了强大的验证功能,让客户端表单验证变得更简单,同时提供了大量的定制选项,满足应用程序各种需求。该插件捆绑了一套有用的验证方法,包括 URL 和电子邮件验证,...
jquery.validate.js jquery.validate.js
修改validate的remote校验,支持处理返回格式{success:false,message:"提示消息"}
JQuery核心文件,JQuery的validate校验文件,validate校验messages_zh中文文件
jquery.validate插件为表单提供了强大的验证功能,让客户端表单验证变得更简单,同时提供了大量的定制选项,满足应用程序各种需求。该插件捆绑了一套有用的验证方法,包括 URL 和电子邮件验证,同时提供了一个用来...
//验证身份证号码 jQuery.validator.addMethod("idCardNo", function (value, element) { //验证身份证号方法 var testIdCardNo = function (idcard) { ...jquery.validate的扩展校验身份证的方法。
引入页面的时候,引入: ... ${request.contextPath}/js/common/plug/jquery/jquery.validate.min.js"> ${request.contextPath}/js/common/plug/jquery/jquery.validate.expand.js"> 把标题正确引入即可使用
jquery.validate.min.js 1.16.0插件,jquery验证
hibernate validate 中文文档 英文文档 hibernate validate 中文文档 英文文档 hibernate validate 中文文档 英文文档
jquery.validate.extend.js
mysql 安装密码校验插件validate_password
jQueryValidate