@PostRemove
From CauchoWiki
The @PostRemove annotation marks an entity's method as a callback after an entity has been removed from the database.
import javax.persistence.*;
@Entity
public class MyEntity {
@Id getId() { ... }
@PostRemove
public void afterDelete()
{
...
}
...
}
[edit] Definition
@Target(METHOD)
@Retention(RUNTIME)
public @interface PostRemove {
}
