Annotation Interface GreaterThanOrEqualTo
@PlacedAtClass
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(GreaterThanOrEqualTo.GreaterThanOrEqualToList.class)
@Documented
@Constraint(validatedBy=GreaterThanOrEqualToValidator.class)
public @interface GreaterThanOrEqualTo
Is valid when the value of
propertyPath is
greater than or equal to the value of basisPropertyPath.
It returns valid when the value of propertyPath
or basisPropertyPath is null or blank string.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalGreaterThanOrEqualToannotations on the same element. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionIs the propertyPath of the basis for comparison.String[]Is the propertyPath being compared. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]Returns groups.Returns message ID.Class<? extends jakarta.validation.Payload>[]Returns payload.Stores DateTimeFormatter format for type conversion from string to Date.Offers conversion to designated type from string value before comparing values.
-
Element Details
-
propertyPath
String[] propertyPathIs the propertyPath being compared. -
basisPropertyPath
String basisPropertyPathIs the propertyPath of the basis for comparison. -
typeConversionFromString
TypeConversionFromString typeConversionFromStringOffers conversion to designated type from string value before comparing values.Default value is
NONE, which means no conversions executed.- Default:
NONE
-
typeConversionDateFormat
String typeConversionDateFormatStores DateTimeFormatter format for type conversion from string to Date. It's referred only when typeConversionFromString == DATE.Default value is "yyyy-MM-dd".
- Default:
"yyyy-MM-dd"
-
message
String messageReturns message ID.- Default:
"{jp.ecuacion.lib.validation.constraints.GreaterThanOrEqualTo.message}"
-
groups
-
payload
-