javax.persistence.PreUpdate - JPA annotation
javax.persistence
Annotation PreUpdate
- Target:
- Callback methods
Is used to specify callback methods for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class.
- Since:
- JPA 1.0
Learn how to define and use JPA callback methods in Chapter 3 of the ObjectDB/JPA manual.
This annotation is a marker annotation (with no elements).