Annotation Type PreRemove


@Target(METHOD)
@Retention(RUNTIME)
public @interface PreRemove
Annotation to mark a method to be executed before removing an entity view due to orphan removal, delete cascading or removal. A method annotated with @PreRemove may optionally have the following parameters There may only be one method in a class annotated with @PreRemove and it may return boolean or void. If it declares a boolean return type, returning true will cause the removal operation to be done and returning false will cause the removal operation to be cancelled. Super type methods annotated with @PreRemove are ignored if an entity view defines a @PreRemove method.
Since:
1.4.0
Author:
Christian Beikov