Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for addMessageParameter (0.1 sec)

  1. src/main/java/org/codelibs/fess/validation/CustomSizeValidator.java

            final HibernateConstraintValidatorContext hibernateContext = context.unwrap(HibernateConstraintValidatorContext.class);
            hibernateContext.disableDefaultConstraintViolation();
            hibernateContext.addMessageParameter("min", min).addMessageParameter("max", max).buildConstraintViolationWithTemplate(message)
                    .addConstraintViolation();
            final int length = value.length();
            return length >= min && length <= max;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top