Jakarta Persistence (JPA) Annotation Type
jakarta.persistence.PostPersist
- Implemented Interfaces:
Annotation
- Target:
- Method
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.
Any generated primary key value is available when this callback occurs.
- Since:
- Jakarta Persistence (JPA) 1.0
The JPA Lifecycle Events article explains how to use
PostPersist.Annotation Elements
This is a marker annotation with no members/elements.
Additional JDK methods inherited from java.lang.annotation.Annotation
annotationType(), equals(Object), hashCode(), toString()