All work
- Error when trying to audit Component SetNHE-136Resolved issue: NHE-136
- CLONE - Unable to cast object of type 'NHibernate.Mapping.Formula' to type 'NHibernate.Mapping.Column'.NHE-135Resolved issue: NHE-135Roger
- Support InsensitiveLikeNHE-130Resolved issue: NHE-130Roger
- Track key changes in mapsNHE-129Resolved issue: NHE-129Roger
- Validity audit strategy with ID reuseNHE-128Resolved issue: NHE-128Roger
- List all the properties that changed for an entity in a revisionNHE-127Resolved issue: NHE-127
- nHibernate Envers with Composite KeyNHE-126Resolved issue: NHE-126
- Envers ignores properties in derived componentsNHE-125Resolved issue: NHE-125Roger
- RelationTargetAuditMode.NotAudited throws if current revision does not existNHE-124Resolved issue: NHE-124Roger
- Traversing deleted entity, onetooneNHE-123
- Use UTC for revision timestampNHE-122Resolved issue: NHE-122Roger
- Lazy Loading of audited entites with revision type 'delete'NHE-121Resolved issue: NHE-121Roger
- many-to-many + list throws if element is non audited entityNHE-120Resolved issue: NHE-120Roger
- Audit not working when using just TransactionScope to manage transactionsNHE-119Resolved issue: NHE-119Roger
- Collections of components only supporting single element changesNHE-118Resolved issue: NHE-118Roger
- Unable to cast object of type 'NHibernate.Mapping.Formula' to type 'NHibernate.Mapping.Column'.NHE-117Resolved issue: NHE-117
- ExcludeRelationData not working for bidirectional (inverse) one-to-manyNHE-116Resolved issue: NHE-116
- Bidirectional custom collection throwsNHE-114Resolved issue: NHE-114Roger
- Better support for custom collectionsNHE-113
- Optimistic concurrency(version) field comes twice in audited tableNHE-112Resolved issue: NHE-112
- ExcludeRelationalData in a bidirectional onetomany relationshipNHE-111
21 of 21
Error when trying to audit Component Set
Fixed
Description
Environment
NHibernate-3.3.3.4001
Attachments
7
Created August 2, 2014 at 12:41 PM
Updated August 5, 2014 at 3:44 PM
Resolved August 5, 2014 at 3:39 PM
Activity
Show:
Roger August 5, 2014 at 3:44 PM
Roger
August 5, 2014 at 3:44 PM
...or you can simply create your own build at this changeset (eddb067652e8d62bd34d9e0387cb365b712a6b32). It's on 1.x branch.
Roger August 5, 2014 at 3:41 PM
Roger
August 5, 2014 at 3:41 PM
This is a duplicate of issue NHE-118. It has already been fixed.
I'm not planning to create any more official 1.x release.
Feel free to backport it to your own build. This changeset will (most probably) fix your issue...
https://bitbucket.org/RogerKratz/nhibernate.envers/commits/eddb067652e8d62bd34d9e0387cb365b712a6b32
...also some breaking change info here....
https://bitbucket.org/RogerKratz/nhibernate.envers/commits/72d39792cf9619d45fb825ce78b1bf71e279182c
João Alexandre de Toledo August 2, 2014 at 12:43 PM
João Alexandre de Toledo
August 2, 2014 at 12:43 PM
With NH-4.0.0.Alpha2 and Envers-2.0.0-Beta3 the problem is gone.
Would it be possible to backport the solution to NH-3.x + Envers-1.x?
I have a class named Body; it has a property named Items, which is a set of BodyItem.
When I try to persist an instance of Body which has only one BodyItem in Body.Items, everything works, and audit data is also recorded. But when I add two different items to Body.Items and try to persist it, an exception is throwed:
NHibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: System.Collections.Generic.Dictionary`2[System.String,System.Object], of entity: ttbl_items_log
If I mark Body.Items with [NotAudited], then I can persist data normally, but (obviously) the audit data for the items is not recorded.