We're updating the issue view to help you get more done. 

Integrate with the new Optional type and/or JavaFX types

Description

Java 8 comes with the Optional wrapper type. JavaFX comes with a hierarchy of property types such as StringProperty which wrap a "normal" data type to make it observable etc.

When putting constraints to properties of these types, it's often desirable to let the constraints apply to the wrapped value instead of the wrapper object, e.g.:

1 2 3 4 5 @Size(min=2) private Optional<String> foo = ...; @Min(42) private LongProperty bar = ...;

To accomodate for such requirements, Hibernate Validator provides the concept of unwrapping values prior to validation.

We should provide unwrapper implementations for Optional and the JavaFX property types.

Environment

None

Status

Assignee

Khalid Alqinyah

Reporter

Gunnar Morling

Labels

Fix versions

Priority

Major