[hibernate-issues] [Hibernate-JIRA] Assigned: (HHH-5580) tracking entity names in a revision

Adam Warski (JIRA) noreply at atlassian.com
Wed Apr 27 10:59:59 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Warski reassigned HHH-5580:
--------------------------------

    Assignee: Lukasz Antoniak  (was: Adam Warski)

> tracking entity names in a revision
> -----------------------------------
>
>                 Key: HHH-5580
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5580
>             Project: Hibernate Core
>          Issue Type: New Feature
>          Components: envers
>    Affects Versions: 3.5.5
>         Environment: hibernate 3.5.5
>            Reporter: Vardan Akopian
>            Assignee: Lukasz Antoniak
>         Attachments: envers-entity-names.patch
>
>
> Currently Envers provides no way of finding which entities have been affected in a given revision. I.e. given a revision number it's impossible to find all the versions of all the entities for that revision. For example, all the search methods in the AuditQuery API take the entity class as a parameter. In our application we need to be able to retrieve all the changes for a given revision number without prior knowledge of which entities have been modified. Similar questions and requests have been posted in the envers forums before. The attached patch has a simple implementation for this feature. It adds 2 simple methods to the RevisionListener interface, that are called from AuditProcess and allow the Revision Entity to keep track of the entity names that are changed. The test cases show the simple usage for this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list