1 Reply Latest reply on Jun 1, 2010 5:46 PM by hernanbolido

    Get revision date & number for an entity

    munico

      Is there a way to get any revision number and date for a given entity?

       

      The result should be a list of entities with the above mentioned meta data, as you know it form e.g. Subversion History.

       

      Thanks!

        • 1. Re: Get revision date & number for an entity
          hernanbolido

          Hi!

           

          Maybe you can use the API defined on AuditReader interface. There are some methods to create queries and obtain revisions for given entities.

          You can obtain an auditReader instance calling AuditReaderFactory.get(session or entityManager).

           

          I hope it will help you.

           

          Hernán.