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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -