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