1 Reply Latest reply on Dec 16, 2009 11:17 AM by Sharath Komarla

    How to select only last revisions

    Yury Koshkarov Newbie

      Hi,

       

      I'm using latest Envers 1.2.1 and I cannot found way to select only last revisions of entities.

       

      so, this line  select all revisions by entityClass

       

      getAuditReader().createQuery().forRevisionsOfEntity(enityClass, false, false);

       

      Can somebody help me create a Query to select only last revisions?

       

      Thanks

      Yury