Uploaded image for project: 'Hibernate Validator'
  1. HV-1494

Hibernate Validator specific @NotEmpty used on return type throws an exception

    Details

      Description

      When using `@NotEmpty` annotation on return type I'm getting following error:

      javax.validation.ConstraintDeclarationException: HV000141: The constraint org.hibernate.validator.constraints.NotEmpty used ConstraintTarget#IMPLICIT where the target cannot be inferred.
      

      It was discussed here

      As a workaround it is possible to implement custom validator as with this commit

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: