Package org.openxava.annotations
Annotation Type RemoveValidator
-
@Repeatable(RemoveValidators.class) @Retention(RUNTIME) @Target(TYPE) public @interface RemoveValidator
The@RemoveValidatoris a level model validator, it is executed just before removing an object, and it has the possibility to deny the deletion.Applies to entities.
Example:
@RemoveValidator(value=DeliveryTypeRemoveValidator.class, properties=@PropertyValue(name="number") ) public class DeliveryType { ...RemoveValidator has no effect if you remove the entity directly using JPA or Hibernate. It only works when you useMapFacadeor delete from a standar OX action). If you can write a contraint for removing that works with JPA and Hibernate use a@PreRemoveJPA method.- Author:
- Javier Paniza
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.ClassvalueClass that implements the validation logic.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description PropertyValue[]propertiesTo set the value of the validator properties before executing it.
-
-
-
-
properties
PropertyValue[] properties
To set the value of the validator properties before executing it.- Default:
- {}
-
-