Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0.Alpha1
    • Component/s: None
    • Labels:
    • Last commented by a user?:
      true
    • Sprint:

      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.:

      @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.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: