6 Replies Latest reply on Jul 2, 2010 5:56 AM by tspaeth

    In Envers, retrieve only the most recent revision for all entities of a particular type

    r0nan

      Hello Adam,

       

      I curious about is Envers able to represent some kind of that:

       

      http://opensource.atlassian.com/projects/hibernate/sr/jira.issueviews:searchrequest-fullcontent/temp/SearchRequest.html?jqlQuery=project+%3D+HHH+AND+component+%3D+envers+ORDER+BY+updated+DESC%2C+priority+DESC%2C+created+ASC&tempMax=1000

       

      Since "grouping" or "subselect" not supported.

       

      To be honest my actual problem is to get a Map<Integer, MyClass> where the Integer is the revison number. But since i use the "forRevisionsOfEntity" i get all version, but i only need the most recents! Similary in the link.

       

      Can you please help?

      Thanks your time.