[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5499) Extend AuditReader interface with findRevisions() method
Erik-Berndt Scheper (JIRA)
noreply at atlassian.com
Tue Aug 24 09:40:41 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38174#action_38174 ]
Erik-Berndt Scheper commented on HHH-5499:
------------------------------------------
With hindsight, a better approach would be to keep the correlation between the revision number and the revision-entity.
Therefore the new signature of the method should be:
* <T> Map<Number, T> findRevisions(Class<T> revisionEntityClass, Set<Number> revisions)
> Extend AuditReader interface with findRevisions() method
> --------------------------------------------------------
>
> Key: HHH-5499
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5499
> Project: Hibernate Core
> Issue Type: Sub-task
> Components: envers
> Reporter: Erik-Berndt Scheper
> Attachments: HHH-5499-AuditReader-findRevisions.patch
>
>
> To improve performance, it would be benificial to extend the Envers AuditReader interface with the following method, so that a list of revision-entities can be retrieved in one query:
> * {{<T> List<T> findRevisions(Class<T> revisionEntityClass, Set<Number> revisions)}}
> See attached patch, with testcases and updated findRevision() method.
--
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