If your using a custom revision entity, you need to map that entity (as a normal nh core entity).
Sent from Samsung tablet -------- Original message -------- >From Scott Findlater <[email protected]> Date: 2015/03/09 17:58 (GMT+01:00) To [email protected] Subject [nhusers] Envers - Cannot extend unmapped class DefaultTrackingModifiedEntitiesRevisionEntity exception I am wanting to create a custom revision entity that extends NHibernate.Envers.DefaultTrackingModifiedEntitiesRevisionEntity class because I have to capture the logged in user who made the changes. For clarity, the DefaultTrackingModifiedEntitiesRevisionEntity is working fine. However, even when just inheriting from the DefaultTrackingModifiedEntitiesRevisionEntity I get a "Cannot extend unmapped class: DefaultTrackingModifiedEntitiesRevisionEntity" exception. There must be a simple configuration mistake I have made and any pointers would be greatly appreciated. Source project is available to download here<https://dl.dropboxusercontent.com/u/20651208/NH/EnversTrackEntities.zip>. When using the default DefaultTrackingModifiedEntitiesRevisionEntity everything works fine. This can be seen by running the CreateBaseRevisionsOfData() test in the Tests project. To simulate the "Cannot extend unmapped class: DefaultTrackingModifiedEntitiesRevisionEntity" error please uncomment a few lines of code within the Domain NHibernate project which is configuring ; * Auditing folder, EnversAuditing.cs line 27. * Mapping folder, Mapping.cs lines 33, 34, 35. * Mapping folder, Convetions.cs lines 60, 61, 62 Then run the CreateBaseRevisionsOfData() test in the Tests project. Kind regards, Scott -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
