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

Attachments

1

Activity

Show:

Roger 
September 21, 2015 at 1:57 PM

I'm not sure I understand what the issue is? Is it fetching wrong data? The live collection rather than the audited one?

How does your envers configuration look like?

Is it possible for you to attach a small test?

Incomplete

Details

Assignee

Reporter

Components

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
Who's Looking?