Package org.openxava.annotations
Annotation Type EntityValidators
-
@Retention(RUNTIME) @Target(TYPE) public @interface EntityValidators
A group of@
associated to the same entity.EntityValidator
Applies to entities.
Example:
@Entity @EntityValidators({ @EntityValidator(value=org.openxava.test.validators.CheapProductValidator.class, properties= { @PropertyValue(name="limit", value="100"), @PropertyValue(name="description"), @PropertyValue(name="unitPrice") }), @EntityValidator(value=org.openxava.test.validators.ExpensiveProductValidator.class, properties= { @PropertyValue(name="limit", value="1000"), @PropertyValue(name="description"), @PropertyValue(name="unitPrice") }), @EntityValidator(value=org.openxava.test.validators.ForbiddenPriceValidator.class, properties= { @PropertyValue(name="forbiddenPrice", value="555"), @PropertyValue(name="unitPrice") }, onlyOnCreate=true ) }) public class Product { ...
Since 6.1 @EntityValidator is repeatable, so you don't need to use @EntityValidators any more.- Author:
- Javier Paniza
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description EntityValidator[]
value
-
-
-
Element Detail
-
value
EntityValidator[] value
-
-