The auditing capabilities currently serve rudimentary requirements of tracking who created and modified entities. However there are more sophisticated frameworks like Hibernate Envers out there that transparently create revisions for all entities saved and allows accessing those in direct entity access as well as triggering queries on a particular revision. So a potential support for something like this is two fold. First we have to have an extension of Repository interface with methods like:
On the other hand the query execution engine could be made aware of the revision a query shall be run against:
As Envers is just one potential candidate we'd have to make the actual versioning library pluggable.