Extend AuditReader interface with findRevisions() method

Description

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.

Environment

None

Status

Assignee

AdamA

Reporter

Erik-Berndt Scheper

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure