In a Play (now 2.6) project, both annotation based validation (for example, @Constraints.Required
) as well as validation via the Validatable
(plus @Validate
) are used. This worked fine until now, but as of play 2.6 both are now executed simultaneously per default.
This leads to the unfortunate effect, that the validate
method (from Validatable
) can now no longer be sure that all the other validations have already finished successfully, so we must add various null-checks, etc. in validate
on fields that are already marked not-null per annotation.
Is there a way in Play 2.6 to get the behavior, that validate()
is only called after all annotation based validation rules have finished successfully?