JPA Annotations for Callback Methods
The following annotations can mark methods as JPA callback methods:
- javax.persistence.PrePersist - JPA Annotation
- javax.persistence.PreRemove - JPA Annotation
- javax.persistence.PreUpdate - JPA Annotation
- javax.persistence.PostLoad - JPA Annotation
- javax.persistence.PostPersist - JPA Annotation
- javax.persistence.PostRemove - JPA Annotation
- javax.persistence.PostUpdate - JPA Annotation
The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes.