From hibernate-commits at lists.jboss.org Mon Mar 8 17:23:27 2010 Content-Type: multipart/mixed; boundary="===============7712359702363717354==" MIME-Version: 1.0 From: hibernate-commits at lists.jboss.org To: hibernate-commits at lists.jboss.org Subject: [hibernate-commits] Hibernate SVN: r18938 - in validator/trunk/hibernate-validator/src/main/docbook/en-US: modules and 1 other directory. Date: Mon, 08 Mar 2010 17:23:27 -0500 Message-ID: <201003082223.o28MNRri025306@svn01.web.mwc.hst.phx2.redhat.com> --===============7712359702363717354== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: hardy.ferentschik Date: 2010-03-08 17:23:27 -0500 (Mon, 08 Mar 2010) New Revision: 18938 Removed: validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/intro= duction.xml Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/custo= mconstraints.xml validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/defin= econstraints.xml validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/getti= ngstarted.xml validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/integ= ration.xml validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/prefa= ce.xml validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/using= validator.xml Log: HV-290 Updated copyright and fixed some docbook syntax Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/master= .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/master.xml 2= 010-03-08 21:52:30 UTC (rev 18937) +++ validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml 2= 010-03-08 22:23:27 UTC (rev 18938) @@ -18,9 +18,9 @@ --> + - + ]> @@ -30,9 +30,9 @@ = Reference Guide = - &versionNumber; + &version; = - &versionNumber; + &version; = ©rightYear; Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/module= s/customconstraints.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/cust= omconstraints.xml 2010-03-08 21:52:30 UTC (rev 18937) +++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/cust= omconstraints.xml 2010-03-08 22:23:27 UTC (rev 18938) @@ -27,7 +27,7 @@ custom constraints tailored to your specific validation requirements in a simple manner. = -
+
Creating a simple constraint = To create a custom constraint, the following three steps are @@ -47,8 +47,7 @@ = -
+
The constraint annotation = Let's write a constraint annotation, that can be used to expre= ss @@ -196,9 +195,8 @@
= -
- The constraint - validator +
+ The constraint validator<= /title> = <para>Next, we need to implement a constraint validator, that's able= to validate elements with a <classname>@CheckCase</classname> annotatio= n. @@ -268,7 +266,7 @@ with the default behavior, we can ignore that parameter for now.</pa= ra> </section> = - <section id=3D"validator-customconstraints-errormessage" revision=3D"1= "> + <section id=3D"validator-customconstraints-errormessage"> <title>The error message = Finally we need to specify the error message, that shall be us= ed, @@ -290,7 +288,7 @@ message in this file.
= -
+
Using the constraint = Now that our first custom constraint is completed, we can use = it @@ -394,7 +392,7 @@
= -
+
Constraint composition = Looking at the licensePlate field of the Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/module= s/defineconstraints.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/defi= neconstraints.xml 2010-03-08 21:52:30 UTC (rev 18937) +++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/defi= neconstraints.xml 2010-03-08 22:23:27 UTC (rev 18938) @@ -21,7 +21,7 @@ Defining constraints = -
+
What is a constraint? = A constraint is a rule that a given element (field, property or @@ -31,7 +31,7 @@ element.
= -
+
Built in constraints = Hibernate Validator comes with some built-in constraints, which @@ -251,7 +251,7 @@
= -
+
Error messages = Hibernate Validator comes with a default set of error messages @@ -272,7 +272,7 @@ JavaDoc for more informations).
= -
+
Writing your own constraints = Extending the set of built-in constraints is extremely easy. Any Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/module= s/gettingstarted.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/gett= ingstarted.xml 2010-03-08 21:52:30 UTC (rev 18937) +++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gett= ingstarted.xml 2010-03-08 22:23:27 UTC (rev 18938) @@ -64,7 +64,7 @@ = -
+
Setting up a new Maven project = Start by creating new Maven project using the Maven archetype pl= ugin @@ -95,13 +95,13 @@ actual code.
= -
+
Applying constraints = Open the project in the IDE of your choice and have a look at the class Car: = - + Class Car annotated with constraints = package com.mycompany; @@ -158,7 +158,7 @@ Validator instance. Let's have a look at the CarTest class: = - + Class CarTest showing validation examples = package com.mycompany; @@ -270,7 +270,7 @@ arise.
= -
+
Where to go next? = That concludes our 5 minute tour through the world of Hibernate Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/module= s/integration.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/inte= gration.xml 2010-03-08 21:52:30 UTC (rev 18937) +++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/inte= gration.xml 2010-03-08 22:23:27 UTC (rev 18938) @@ -26,7 +26,7 @@ annotated domain model) and checked in various different layers of the application. = -
+
Database schema-level validation = Out of the box, Hibernate Annotations (as of Hibernate 3.5.x) wi= ll @@ -54,7 +54,7 @@ Hibernate Validator integrates with both Hibernate and all pure = Java Persistence providers. = -
+
Hibernate event-based validation = Hibernate Validator has a built-in Hibernate event listener - Deleted: validator/trunk/hibernate-validator/src/main/docbook/en-US/modules= /introduction.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/intr= oduction.xml 2010-03-08 21:52:30 UTC (rev 18937) +++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/intr= oduction.xml 2010-03-08 22:23:27 UTC (rev 18938) @@ -1,58 +0,0 @@ - - - - - - - Introduction - -
- What is it about? - - -
- -
- Installation - - - -
- Prerequisites - - -
-
- Running Bean Validation RI with downloaded JARs - = - -
-
- Running Bean Validation RI using Maven - - -
-
- Building Bean Validation RI from the sources - - -
-
-
- -
Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/module= s/preface.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/pref= ace.xml 2010-03-08 21:52:30 UTC (rev 18937) +++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/pref= ace.xml 2010-03-08 22:23:27 UTC (rev 18938) @@ -18,7 +18,7 @@ --> - + Preface = Validating data is a common task that occurs throughout any 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 2010-03-08 21:52:30 UTC (rev 18937) +++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usin= gvalidator.xml 2010-03-08 22:23:27 UTC (rev 18938) @@ -27,7 +27,7 @@ and which additional constraints are only provided by Hibernate Validato= r. Let's start with how to add constraints to an entity. = -
+
Defining constraints = Constraints in Bean Validation are expressed via Java annotation= s. @@ -391,7 +391,7 @@
= -
+
Validating constraints = The Validator interface is the main entry @@ -666,7 +666,7 @@
= -
+
Validating groups = Groups allow you to restrict the set of constraints applied duri= ng @@ -856,7 +856,7 @@ Last but not least, we show that all constraints are passing by validating against all defined groups. = -
+
Group sequences = By default, constraints are evaluated in no particular order a= nd @@ -964,7 +964,7 @@
= -
+
Built-in constraints = Hibernate Validator implements all of the default constraints --===============7712359702363717354==--