[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6605) Storing information about changes of properties

Michał Skowronek (JIRA) noreply at atlassian.com
Wed Aug 24 18:26:02 EDT 2011


Storing information about changes of properties
-----------------------------------------------

                 Key: HHH-6605
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6605
             Project: Hibernate Core
          Issue Type: New Feature
          Components: envers
    Affects Versions: 4.x
            Reporter: Michał Skowronek


Users would be able to construct more meaningful audit queries if Envers had an option to store and query information about modifications of individual properties, e.g.:

getAuditReader().createQuery().forRevisionsOfEntity(clazz, false, false)
		.add(AuditEntity.id().eq(id)).add(AuditEntity.property(propertyName).hasChanged());

With such a query, user will get only those revisions of (clazz, id), that modified property with propertyName.
Currently, to achieve that, user have to retrieve and compare manually two revisions, which increases complexity and decreases performance. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list