java - Querying all Hibernate Envers revisions between two dates -
i have started using hibernate envers audit, , know if there way revisions of class between 2 dates.
up until using:
auditquery query = reader.createquery().forrevisionsofentity(myclass.class, false, true); query.add(auditentity.revisionnumber().le(reader.getrevisionnumberfordate(mydate)));
to revisions of particular date, there way recover revisions between example: mydate1 , mydate2?
you can use between
method of auditproperty
apply "between" constraint.
http://docs.jboss.org/envers/api-new/org/hibernate/envers/query/criteria/auditproperty.html
Comments
Post a Comment