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 Newbie

      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