~/talk

Bean Validation 2.0 - you’ve put your annotations everywhere!

Talkat Devoxx Belgium 2017 · 2017-11-06..11-10· [java]
slides:none on file

Bean Validation 2.0 makes Java 8 a hard requirement and adds concrete features: @Repeatable constraints for multiple validation groups, container element validation (type-use annotations) to validate list elements, map keys and values and cascade into nested collections, and Optional support plus full Java Time API constraints including new futureOrPresent/pastOrPresent rules. It defines new constraints (NotEmpty/NotBlank/Positive/etc.), a value extractor SPI for Guava or other collections, ships a faster Hibernate Validator reference implementation, and is available for WildFly (patch) and Spring 5.

AI-written summary · about

  1. 0:00Intro
  2. 1:03Bean Validation 2.0 - JSR 380
  3. 1:38Use Case: Different Passwords for Different Roles
  4. 2:42Use Case: Ensure Non-Empty Collection Elements
  5. 4:01Cascaded Validation
  6. 7:11Custom Containers
  7. 9:07Use Case: Delivery Date in the Future
  8. 10:12New Constraints
  9. 11:40Trying It Out Yourself
  10. 13:25Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.