2 Replies Latest reply on Mar 16, 2012 12:55 AM by adamw

    How to find previous revision?

    marx3

      Hello

      How to query for previous revision of given revision of historical entity?

       

      Let's say I have an instance of class in revision x, and I want to find previous revision of this instance (exactly one, and related to this instance, not all previous revisions of all instances, because it would be slow).

       

      I can read all revisions of class (forRevisionsOfEntity), and probably somehow filter by id of my instance, but I don't know how exactly to do it (use SimpleAuditExpression?) because usage of AuditCriterion is undocumented. And it give me all revisions, while I need only previous one - is it possible to add filter for it too?