From hibernate-commits at lists.jboss.org Mon Oct 26 12:45:45 2009 Content-Type: multipart/mixed; boundary="===============1742818924294538624==" MIME-Version: 1.0 From: hibernate-commits at lists.jboss.org To: hibernate-commits at lists.jboss.org Subject: [hibernate-commits] Hibernate SVN: r17842 - validator/trunk/hibernate-validator/src/main/docbook/en-US/modules. Date: Mon, 26 Oct 2009 12:45:45 -0400 Message-ID: <200910261645.n9QGjj8b026529@svn01.web.mwc.hst.phx2.redhat.com> --===============1742818924294538624== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: hardy.ferentschik Date: 2009-10-26 12:45:45 -0400 (Mon, 26 Oct 2009) New Revision: 17842 Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/using= validator.xml Log: HV-258 Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/module= s/usingvalidator.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usin= gvalidator.xml 2009-10-26 16:24:37 UTC (rev 17841) +++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usin= gvalidator.xml 2009-10-26 16:45:45 UTC (rev 17842) @@ -172,8 +172,8 @@ ConstraintValidator. Class level constraints = are useful if it is necessary to inspect more than a single property of = the class to validate it or if a correlation between different state - variables has to be evaluated. In w= e add - the property passengers to the class + variables has to be evaluated. In + we add the property passengers to the class Car. We also add the constraint PassengerCount on the class level. We will la= ter see how we can actually create this custom constraint (see PassengerCount will ensure that the= re cannot be more passengers in a car than there are seats. = - + Class level constraint = package com.mycompany; --===============1742818924294538624==--