1 Reply Latest reply on Jan 26, 2011 7:08 PM by hernanbolido

    Does this feature exists?

    israel.bgf

      Hi, i have a conceptual question about a feature in Envers.

       

      Let's use the wiki sample of the Envers.

       

      A WikiPage has many Links. (In this example, let's assume that the link is actually an entity, not a simple String)

       

      What happens if I edit an link that's being used by the wikipage? When I retrieve the WikiPage it will come with an different Link than expected (the old one, before someone edited it). The wiki page will bring the new and link of the Link table and not the old one that is stored in the version table.

       

      Is it possible to achieve this behaviour with envers?

       

      Thanks in advance.

        • 1. Does this feature exists?
          hernanbolido

          Hi!

           

          I can't figure out your point... but I'll try to explain somethings...

           

          With envers you could retrieve the WikiPage's graph as it was in a given moment.

          For example:

           

          Let's say:

           

          Case 1)

           

               revision 1 = wikiPage1 -> link1. (you change the link of wikiPage1 to another link)

               revision 2 = wikiPage1 -> link2.

           

          With envers you can retrieve both graphs, depending on the revision.

           

          Case 2)

           

               revision 1 = wikiPage1 -> link1. (you modify data on link1 but not the relation from wikiPage1)

               revision 2 = wikiPage1 -> link1_1.

           

          With envers you can retrieve both graphs, depending on the revision.

           

           

           

          Hope it will help.

          Regards. Hernán.