Home » Search

About PostRemove

1-2 of 2Refresh
Manual
114

JPA Lifecycle Events

onPostUpdate() {} @PreRemove void onPreRemove() {} @PostRemove void onPostRemove ... the EntityManager. @PostRemove - after deleting an entity from the database (during commit or flush). An entity ... ) {} @PostRemove void onPostRemove(Object o) {} } External callback methods (in a listener class
JPA Doc
113

javax.persistence.PostRemove

javax.persistence Annotation PostRemove 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