Bean Validation 2 0
summary
Bean Validation 2.0 (JSR 380) targets Java 8 only and adds repeatable annotations and Java 8 type-use to enable per-element constraints on collections, maps and Optionals; it adds java.time support with configurable Clock provider and new past/present semantics. The reference implementation is Hibernate Validator alpha1, already runnable in WildFly; JAX‑RS integration returns 400 with violation details. New features include parameter name support, built‑in constraints like notEmpty/notBlank/@Email, a programmatic API using lambdas, and extensible value extractors (example: Guava Table).
AI-written summary · about
chapters (11)
- 0:00Start
- 1:00Emmanuel Bernard
- 2:11What is Bean Validation
- 18:45Bean Validation 2.0
- 19:05Repeatable annotations
- 22:19Cascading collections
- 25:03Custom containers
- 30:52java.time new API
- 35:55Current status
- 36:50Everything is open (source)
- 37:34Hibernate Validator specifics
related talks
14mBean Validation 2.0 - you’ve put your annotations everywhere!
43mWhat's New in Bean Validation 2.0 - Java 8 Support and More
46mJava EE 8: What’s New in the Java EE 8 Release
50mJava EE 8 - What's coming?
50mJava EE 8: What's New in the Java EE 8 Release
37mStop Writing Assertions, Start Validating!
55mOn Annotations — Time to Stop the Demons
52mJavaslang - Functional Java Done Right
