3 Replies Latest reply on Mar 31, 2015 6:25 AM by itay sahar

    where can i get the documentation for Envers 1.1.0.GA?

    Simon Massey Newbie
      I want to add Envers to a system using hibernate core 3.2.6.ga. I should be able to use envers 1.1.0.GA but I cannot find any documentation for that version of the Jar file. Could someone please post a link to the docs?
      thanks!
        • 1. Re: where can i get the documentation for Envers 1.1.0.GA?
          Adam Warski Master

          Hmm, looks like the docs got removed in the process of migrating the website and the doc site. But the current doc are mostly valid, except that you have to subsiste the word "Audit" for "Version", so e.g. the annotaiton is @Versioned not @Audited, and the main class @VersionReader and not @AuditReader.

           

          Adam

          • 2. Re: where can i get the documentation for Envers 1.1.0.GA?
            itays100 Newbie

            Hello Adam,

            This thread is old but I am experience the same issue at the moment so hope you might help.

            I've upgraded hibernate from 3.2.4 to 3.2.6 so I can use Envers 1.1.0 (the prjoject seam 2.1.2 JPA 1).

            You mentioned in your message that the documentation is no longer exist. I've noticed that @Versioned should be used

            but I'm not sure how the configuration should look like. I've found the details below (which might be used in newer version of Envers) and include it

            in my persistence.xml:

             

                      <property name="hibernate.ejb.event.post-insert" value="org.hibernate.ejb.event.EJB3PostInsertEventListener,org.hibernate.envers.event.AuditEventListener" />

                 <property name="hibernate.ejb.event.post-update" value="org.hibernate.ejb.event.EJB3PostUpdateEventListener,org.hibernate.envers.event.AuditEventListener" />

                 <property name="hibernate.ejb.event.post-delete" value="org.hibernate.ejb.event.EJB3PostDeleteEventListener,org.hibernate.envers.event.AuditEventListener" />

                 <property name="hibernate.ejb.event.pre-collection-update" value="org.hibernate.envers.event.AuditEventListener" />

                 <property name="hibernate.ejb.event.pre-collection-remove" value="org.hibernate.envers.event.AuditEventListener" />

                      <property name="org.hibernate.envers.audit_table_suffix" value="_AUD" />

                      <property name="org.hibernate.envers.revision_field_name" value="REV" />

             

            I've got the exception:        

            Caused by: javax.persistence.PersistenceException: org.hibernate.MappingException: Unable to instantiate specified event (post-update) listener class: org.hibernate.envers.event.AuditEventListener

             

            I'm using these version of hibernate:

            [Version] Hibernate Annotations 3.3.0.GA

            INFO  [Environment] Hibernate 3.2.6

            [Environment] using JDK 1.4 java.sql.Timestamp handling

            Hibernate EntityManager 3.3.1.GA

             

            Thanks in advance,

            Itay

            • 3. Re: where can i get the documentation for Envers 1.1.0.GA?
              itay sahar Newbie

              This is how to configure Envers 1.1.0 which works with hibernate 3.2.6.

              Envers is back from vacations | Blog of Adam Warski