JSR 303

Today I found the very interesting JSR 303 Bean Validation.

There is a presentation from Emmanuel Bernard from this years JavaOne which gives a very good overview.

The main idea is to provide annotaions for validaion support like @NotNull, @Length(max=30) etc. This validation will also be used in Java Persistence API to define the constraints and also for the automatic database generation.