3 Replies Latest reply on Apr 6, 2014 11:48 AM by andy.newton

    Hibernate Envers retrieve latest revision number without updating db

    sanaullah.nazir

      Hi Adam,

       

      wanted to ask I am trying to retrive the latest revision number, without persisting a new entity before gettting the revision number. like this

      AuditReaderFactory.get(entityManager).getCurrentRevision(DefaultRevisionEntity.class, false);

       

      This returns 0, shouldnt it be returning the latest revision number, without persisting anything new.

       

      Thanks