I had a quick look but your tests are green… You’ve probably commented out something?
Have you read about the three alternatives on how to track modified entity names here - http://envers.bitbucket.org/#envers-tracking-modified-entities-revchanges? I don’t use this functionality myself, don’t know if there is a bug or not. May also be some attribute conf that needs to be converted to fluent. Please try to isolate your problem to a small test case (using envers repo) a create a pull request. Regards Roger From: [email protected] [mailto:[email protected]] On Behalf Of Scott Findlater Sent: den 9 mars 2015 20:23 To: [email protected] Subject: Re: [nhusers] Envers - Cannot extend unmapped class DefaultTrackingModifiedEntitiesRevisionEntity exception Hi Roger, thank you for your reply. I have added my custom revision entity to the nh core mappings - this is done during the commenting out in the demo solution. May I politely ask if you would mind looking at the solution provided because I really am stuck at the moment and there must be something simple I am missing. Many thanks. Scott. Kind regards, Scott On 9 Mar 2015, at 18:32, Roger Kratz <[email protected]<mailto:[email protected]>> wrote: 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]<mailto:[email protected]>> Date: 2015/03/09 17:58 (GMT+01:00) To [email protected]<mailto:[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]<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]<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.
