This content has been marked as final.
Show 2 replies
-
1. Re: Latest revision for delete - Envers 1.2.2.GA
adamw Apr 27, 2012 9:20 AM (in response to bwarren)1 of 1 people found this helpfulI think you do everything, except that you don't need to setDeletedEntites = true. All entities are always taken into account; this parameter only specifies if the "DEL" revisions (which have all-null) data should be returned. Otherwise, the last change of the entity will be returned.
Unless you want to get the revision at which the entity was deleted, not the revision at which the last change was made to it. If so, you'll have to upgrade to a newer version of Hibernate and set the conf parameter store data in delted revisions to true.
Adam
-
2. Re: Latest revision for delete - Envers 1.2.2.GA
bwarren Apr 27, 2012 2:09 PM (in response to adamw)I want the version number of the latest change to the set of entities, which sometimes may be a delete.
Upgrading hibernate is not an option at this time so I'll just handle it with a native query.