[ 
https://issues.apache.org/jira/browse/OPENJPA-2474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

leonardo kenji shikida updated OPENJPA-2474:
--------------------------------------------

    Description: 
since events such as @PostUpdate only receives the object itself, it's hard to 
do something more useful than just logging when the change occurred. A more 
useful feature would be to retrieve the changes from some context object like 
it´s done for example with this 
http://docs.doctrine-project.org/en/2.0.x/reference/events.html#preupdate - see 
the "PreUpdateEventArgs" concept.

@Auditable maybe?

  was:since events such as @PostUpdate only receives the object itself, it's 
hard to do something more useful than just logging when the change occurred. A 
more useful feature would be to retrieve the changes from some context object 
like it´s done for example with this 
http://docs.doctrine-project.org/en/2.0.x/reference/events.html#preupdate - see 
the "PreUpdateEventArgs" concept


> add to persistence events a way to retrieve the changes involved
> ----------------------------------------------------------------
>
>                 Key: OPENJPA-2474
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2474
>             Project: OpenJPA
>          Issue Type: New Feature
>            Reporter: leonardo kenji shikida
>            Priority: Minor
>
> since events such as @PostUpdate only receives the object itself, it's hard 
> to do something more useful than just logging when the change occurred. A 
> more useful feature would be to retrieve the changes from some context object 
> like it´s done for example with this 
> http://docs.doctrine-project.org/en/2.0.x/reference/events.html#preupdate - 
> see the "PreUpdateEventArgs" concept.
> @Auditable maybe?



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to