2 Replies Latest reply on Oct 5, 2009 7:47 AM by Nico B

    RevisionEntity (ENVINFO) behaviour

    Nico B Newbie

      Hi all,

      I'm currently facing an issue using Envers (it can be a misunderstanding as well).
      Here is my problem : I can't understand why an entry in the REVINFO table is not linked to the related entry in the audit table.
      For instance, for my audit table Client_AUD, I'd like to be able to find the related entry in the ENVINFO.

      Is it possible to have such a behaviour ?

      Thanks in advance,


        • 1. Re: RevisionEntity (ENVINFO) behaviour
          Adam Warski Master


          what do you mean by that it's not linked? Each entry in an audit table has a corresponding entry in revision info table, as you write.


          • 2. Re: RevisionEntity (ENVINFO) behaviour
            Nico B Newbie

            I Adam,

            You're right to ask, I was really unclear. I was looking for a way to request both the audited entity table and the revinfo table in order to retrieve these datas together.

            I found a way to do that using :
            auditReader.createQuery().forRevisionsOfEntity(MyClass.class, false, true).getResultList();

            Moreover, I read your presentation about Envers and it has clarified some key points (especially the analogy between a revision and SVN and the two axis diagram) for me.

            Thank you for your reply and keep on the good job,