Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.hibernate.validator
Annotation Type Digits

    @ValidatorClass(value=DigitsValidator.class)
    @Target(value={METHOD,FIELD})
    @Retention(value=RUNTIME)
    @Documented
    public @interface Digits

Check that a given number has `integerDigits` integer digits and `fractionalDigits` fractional digits The constraints are defined at the database level too

Author:
  Norman Richards

Required Element Summary
`int` | `integerDigits`

Optional Element Summary
`int` | `fractionalDigits`
`String` | `message`

Element Detail

### integerDigits

    public abstract int integerDigits

### fractionalDigits

    public abstract int fractionalDigits

  Default:
    0

### message

    public abstract String message

  Default:
    "{validator.digits}"

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT