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

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

    Karoly Torok Newbie

      Hello Adam,


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




      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.