2 Replies Latest reply on Mar 20, 2013 5:04 AM by erasmo da rotterdam

    Pending revisions with envers

    erasmo da rotterdam Newbie

      HI everybody,

      i was wondering if there's a way to mark a revision as still-in-pending, that is it must be validated before becoming active.

      What i'm trying to develop is a system where users propose a revision for certain data and then the administrator validates or refuses it.

       

      A simple way I was thinking of is to replicate all of my entities in order to have tables for "active" data, tables for data proposals and tables for revisions.

      Another way would be to use the same tables envers uses for revisions to store data proposal too, but i don't know how to force envers to write to the revision tables without changing my actual entities.