1 Reply Latest reply on Mar 18, 2010 10:34 AM by Adam Warski

    Getting all deleted entities of a given class

    henry donnell Newbie

      I need to implement the following use case in a project using enver:

      - return all entities of the given class MyClass which were deleted during a month, e.g. between 01.01.2010 and 31.01.2010.

       

      I have tried different queries, by adding restriction to the RevisionType = DEL... But it returns only empty entites, as this is the default behaviour.

      Now I saw a setting I can use to force envers to store full entity on delete.

       

      But is there any other way to solve this? Because it is not really nice to store entites redundantly in my history table....