]
Adam Warski updated HHH-5580:
-----------------------------
Fix Version/s: 3.6.8
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
Fix For: 4.0.0.Beta1, 3.6.8
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.
For more information on JIRA, see: