@MinInclusive annotation

back to index

Action

Requires that a numeric value is greater or equal than a specified minimum.

Javadoc Ref :  Javadoc reference@MinInclusive

 Input Types 1
Number
 Output Types
Number
   

1Automatic conversion will take place if the provided input does not match any of the input classes, as described in the conversions part of the manual.

Arguments

value

Minimum allowable value (inclusive)

message

Literal message to use if validation fails.

errorCode
Error code to use if validation fails.
messageKey
Message key to use if validation fails.

 

Example

@MinInclusive(33)
private byte byteField;

@MinInclusive(33)
private BigDecimal bigDecimalField;