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