final AuditReader auditReader = AuditReaderFactory.get( session );
List results = auditReader.createQuery().forRevisionsOfEntity( MyEntity.class, true, false )
.add( AuditEntity.revisionNumber().maximize().computeAggregationInInstanceContext() )
.getResultList();