Hibernate Validator Migration Guide

    4.2.0.Final

    4.2.0.CR1

    4.2.0.Beta2

    4.2.0.Beta1

    • BVTCK-12 resp. HV-395 required a change in the javax.validation.Path implementation. Unless you iterate over the Path instance returned by Constraint.getPropertyPath() you are not affected by this change.
    • Programmtic configured generic constraints are now configured like this:
      mapping.type( Foo.class )
         .property( "bar", FIELD )
         .genericConstraint( MyConstraint.class ).param( "value", 1 );
      
      
      
    • When creating own subclasses of ConstraintDef is it not necessary anymore to repeat the definitionns of message, payload and groups. ConstraintDef uses now self-referential generic types.