3 Replies Latest reply on Jun 27, 2011 11:09 AM by Adam Warski

    Deleted entities when querying for entities at revision

    anonimo Newbie



      At the moment I am trying to retrieve the list of entities that changed between two specific dates. This should include modifed and deleted entities, returning only the most recent revision within that timeframe.


      The only possible way seems to be:


      //Find out the revision of the end date

      Number revision = reader.getRevisionNumberForDate(endDate);


      query = reader


             .forEntitiesAtRevision(PricingConfig.class, revision)


      However, if an entity was modified and then deleted within that timeframe, that entity is not returned. It only seems to work for modified entities, but not for deleted ones. Is there any specific reason for this behavior? Any alternatives that return also deleted entities?