[hibernate-commits] Hibernate SVN: r17581 - validator/trunk/hibernate-validator/src/main/docbook/en-US/modules.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Wed Sep 30 09:06:48 EDT 2009
Author: hardy.ferentschik
Date: 2009-09-30 09:06:48 -0400 (Wed, 30 Sep 2009)
New Revision: 17581
Modified:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usingvalidator.xml
Log:
HV-220 Updated the available constraints table.
Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usingvalidator.xml
===================================================================
--- validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usingvalidator.xml 2009-09-29 19:28:33 UTC (rev 17580)
+++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usingvalidator.xml 2009-09-30 13:06:48 UTC (rev 17581)
@@ -1086,6 +1086,19 @@
</row>
<row>
+ <entry>@Email</entry>
+
+ <entry>no</entry>
+
+ <entry>field/property. Needs to be a string.</entry>
+
+ <entry>Check whether the specified string is a valid email
+ address.</entry>
+
+ <entry>none</entry>
+ </row>
+
+ <row>
<entry>@Future</entry>
<entry>yes</entry>
@@ -1110,7 +1123,7 @@
<parameter>min</parameter> and <parameter>max</parameter>
included.</entry>
- <entry>Column length will be set to max.</entry>
+ <entry>none</entry>
</row>
<row>
@@ -1172,10 +1185,23 @@
<entry>Check if the string is not <constant>null</constant> nor
empty.</entry>
- <entry>Column(s) are not null (for String).</entry>
+ <entry>none</entry>
</row>
<row>
+ <entry>@Null</entry>
+
+ <entry>yes</entry>
+
+ <entry>field/property</entry>
+
+ <entry>Check that the annotated value is
+ <constant>null.</constant></entry>
+
+ <entry>none</entry>
+ </row>
+
+ <row>
<entry>@Past</entry>
<entry>yes</entry>
@@ -1203,6 +1229,24 @@
</row>
<row>
+ <entry>@Range(min=, max=)</entry>
+
+ <entry>no</entry>
+
+ <entry>field/property. Supported types are
+ <classname>BigDecimal</classname>,
+ <classname>BigInteger</classname>, <classname>String</classname>,
+ <classname>byte</classname>, <classname>short</classname>,
+ <classname>int</classname>, <classname>long</classname> and the
+ respective wrappers of the primitive types.</entry>
+
+ <entry>Check whether the annotated value lies between (inclusive)
+ the specified minimum and maximum.</entry>
+
+ <entry>none</entry>
+ </row>
+
+ <row>
<entry>@Size(min=, max=)</entry>
<entry>yes</entry>
@@ -1215,7 +1259,7 @@
<entry>Check if the annotated element size is between min and max
(inclusive).</entry>
- <entry>none</entry>
+ <entry>Column length will be set to max.</entry>
</row>
<row>
More information about the hibernate-commits
mailing list