openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <>
Subject [jira] Closed: (OPENJPA-1341) PostRemove not invoked after database record was deleted
Date Tue, 20 Oct 2009 04:03:59 GMT


Pinaki Poddar closed OPENJPA-1341.

    Resolution: Fixed

> PostRemove not invoked after database record was deleted
> --------------------------------------------------------
>                 Key: OPENJPA-1341
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.0.0
>            Reporter: Pinaki Poddar
>            Assignee: Pinaki Poddar
>             Fix For: 2.0.0-M4
> It has been reported that PostRemove is not invoked after database delete but invoked
after flush().
> This is in disagreement with JPA 2.0 Spec (Section 3.5.2) which states
> "
>  1. The PostPersist and PostRemove callback methods are invoked for an entity after the
entity has been made persistent or removed. 
>  2. These callbacks will also be invoked on all entities to which these operations are
>  3. The PostPersist and PostRemove methods will be invoked after the database insert
and delete operations respectively. 
>      These database operations may occur directly after the persist, merge, or remove
operations have been invoked or they 
>      may occur directly after a flush operation has occurred (which may be at the end
of the transaction). 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message