1 Reply Latest reply on Dec 4, 2008 11:31 AM by Adam Warski

    Revision Entity

    Amar Singh Newbie

      Looking at the @RevisionEntity for versioned entity, does the id and timestamp need to be a property of the object being versioned ?

      Can these be property of an object which itself is a property of the versioned entity.


      class Person
      - versionData/id
      - versionData/timestamp

      rather than

      class Person:
      - id
      - timestamp

        • 1. Re: Revision Entity
          Adam Warski Master

          Yes, it is like so.
          The timestamp and other metadata are properites of the (default or not) revision entity. Each versioned entity has a relation - many-to-one - to the corresponding revision entity. You can retrieve it using the revisions-of-entity query.