I have a project where i have all my entities. And I have another project where I try to get all the data of each Audited table of each given Entity. With Hibernate envers i know how to retrieve an object in a previous version.
AuditReaderFactory.get(Session sess) and Object AuditReader.find(Class<T> cls, Object primaryKey, Number revision)
But I don't know how to get All records data in an audited X with the rev et typerev field too.
Any idea?
Because i want to get a lot of data from an audited table (in some table i find the millions of revisions so to get that they take a lot of time whitch cause a timout for the server , specialy when i use hibernate envers , that why i change to native query and i found a lot of possibilities and fonctionalities in.