This content has been marked as final. Show 2 replies
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?