Annotation Interface LessThan


@PlacedAtClass @Target(TYPE) @Retention(RUNTIME) @Repeatable(LessThan.LessThanList.class) @Documented @Constraint(validatedBy=LessThanValidator.class) public @interface LessThan
Is valid when the value of propertyPaths is less than the value of basisPropertyPath.

It returns valid when the value of propertyPaths or basisPropertyPath is null or blank string.

  • Element Details

    • propertyPath

      String[] propertyPath
      Is the propertyPath being compared.
    • basisPropertyPath

      String basisPropertyPath
      Is the propertyPath of the basis for comparison.
    • typeConversionFromString

      TypeConversionFromString typeConversionFromString
      Offers conversion to designated type from string value before comparing values.

      Default value is NONE, which means no conversions executed.

      Default:
      NONE
    • message

      String message
      Returns message ID.
      Returns:
      message ID
      Default:
      "{jp.ecuacion.lib.validation.constraints.LessThan.message}"
    • groups

      Class<?>[] groups
      Returns groups.
      Returns:
      groups
      Default:
      {}
    • payload

      Class<? extends jakarta.validation.Payload>[] payload
      Returns payload.
      Returns:
      payload
      Default:
      {}