Incomplete
Details
Details
Assignee
Unassigned
UnassignedReporter
Dominic Ibeme
Dominic IbemeComponents
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created September 18, 2015 at 6:06 PM
Updated December 23, 2015 at 11:33 AM
Resolved December 23, 2015 at 11:33 AM
Envers 2.0 allows us to audit Collections within an entity, a great feature that wasn't available in prior releases, we used this to store the complete entity state during a revision, however we realised that upon retrieving the entity from the revision tree, it defaults to NHibernate's Proxying mechanism to retrieve the Collections, thereby retrieving collection from the live entity as against the audited one, i tried digging through the code, quite impressive, found a possible cause and solution, however didnt want to implement any fragmented approach.
the mapping files generated by envers as well as Nhibernate have been attached.
possibly if an inverse collection is added to the audited entity mapping, it can lazily load the collection along thereby bypassing Nhibernate.
Kind regards.