1 Reply Latest reply on Jun 29, 2011 2:15 AM by adamw

    Using Envers with existing data?

    markwoon

      Is it possible to use Envers (with ValidityAuditStrategy) with existing data?

       

      I'm getting "Cannot find previous revision for entity" errors when I try to do so with Hibernate 3.6.5.

       

      Thanks.

        • 1. Re: Using Envers with existing data?
          adamw

          The best way is to initialize the audit tables with exisiting data. That is, for all exisiting data, create a revision "1" with modification type "add" using some sql scripts - unfortunately these are not bundled with Envers, but they should be easy to write.

           

          Adam