collection of Component in an entity not returing upon Audit Query

Description

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.

Environment

Dot net 4.5

Assignee

Unassigned

Reporter

Dominic Ibeme

Labels

None

Components

Affects versions

Priority

Major
Configure