jakarta.persistence
public @Interface PrePersist
extends Annotation
- Annotations
- @Target:METHOD
- @Retention:RUNTIME
- Imports
- java.lang.annotation.Target, .Retention
Specifies a callback method 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
- 1.0