org.openxava.annotations
Annotation Type EntityValidators
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface EntityValidators
A group of @EntityValidator associated to the same entity.
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 {
...
- Author:
- Javier Paniza
value
public abstract EntityValidator[] value