com.avaje.ebean.validation
Annotation Type Range


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface Range

Validate the numeric range of a property.

You can specify a min, max or both. If you specify only a max then this effectively becomes a max only range test.


Optional Element Summary
 long max
          The maximum value.
 long min
          The minimum value.
 

min

public abstract long min
The minimum value. Defaults to Long.MIN_VALUE.

If left at Long.MIN_VALUE then this really becomes a Max only validation test.

Default:
-9223372036854775808L

max

public abstract long max
The maximum value. Defaults to Long.MAX_VALUE.

If left at Long.MAX_VALUE then this really becomes a Min only validation test.

Default:
9223372036854775807L


Copyright © 2010. All Rights Reserved.