Home » Search

About PostPersist

1-3 of 3Refresh
JPA Doc
103

javax.persistence.PostPersist

javax.persistence Annotation PostPersist 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
Manual
102

JPA Lifecycle Events

MyEntityWithCallbacks { @PrePersist void onPrePersist() {} @PostPersist void onPostPersist ... (added to the EntityManager). @PostPersist - after storing a new entity in the database (during commit or ... MyListener { @PrePersist void onPrePersist(Object o) {} @PostPersist void onPostPersist(Object
JPA Doc
44

JPA Annotations for Callback Methods

Reference (JavaDoc) of JPA 2 event callback and listener annotations, including @PrePersist(2), @PreRemove, @PreUpdate, @PostLoad, @PostPersist, @PostRemove and @PostUpdate.