2. What is value from validation?
What is possible place for validation?
What is right place for validation?
What is correct implementation of
validation?
3. How to implement … with Hibernate
Validator
simple bean validation
simple method validation
complex bean validation
custom constrain for validation
4. What is with Hibernate Validator?
• validation framework based on metadata model (annotations)
• implements JSR 349 (Bean Validation 1.1) specification
• provides under Apache Software License 2.0
5. How to add Hibernate Validator to my
project?
Required
Optional
13. Grouping constraints combination
@GroupSequence
@GroupSequenceProvider (PROVIDER)
PROVIDER implements DefaultGroupSequenceProvider<T>
provide list of validation groups based on object stage
@ConvertGroup(from = GROUP_A.class, to = GROUP_B.class)
during validation with group A will be used rules from both
groups
18. Interesting Notes
Fail fast mode
Boolean composition of constraints in custom constrain
@ConstraintComposition(OR)
CompositionType with its values AND, OR and ALL_FALSE.
Validation of Null by default return true