NHibernate.MappingException: No persister for: ProxyForFieldInterceptor

36 views
Skip to first unread message

Егоров Никита

unread,
Sep 18, 2021, 2:11:44 PM9/18/21
to nhusers
I have latest version Envers and Nhib
<PackageReference Include="NHibernate" Version="5.3.9" />
<PackageReference Include="NHibernate.Envers" Version="5.3.1" />

And when I save my entity

NHibernate.MappingException: No persister for: CantonProxyForFieldInterceptor at NHibernate.Impl.SessionFactoryImpl.GetEntityPersister(String entityName) at NHibernate.Impl.SessionImpl.GetEntityPersister(String entityName, Object obj) at NHibernate.Envers.Tools.Toolz.getIdentifier(ISessionImplementor session, Object obj) at NHibernate.Envers.Tools.Toolz.EntitiesEqual(ISessionImplementor session, Object obj1, Object obj2) at NHibernate.Envers.Entities.Mapper.Relation.ToOneIdMapper.MapToMapFromEntity(ISessionImplementor session, IDictionary`2 data, Object newObj, Object oldObj) at NHibernate.Envers.Entities.Mapper.MultiPropertyMapper.Map(ISessionImplementor session, IDictionary`2 data, String[] propertyNames, Object[] newState, Object[] oldState) at NHibernate.Envers.Synchronization.Work.AddWorkUnit..ctor(ISessionImplementor sessionImplementor, String entityName, AuditConfiguration verCfg, Object id, IEntityPersister entityPersister, Object[] state) at NHibernate.Envers.Event.AuditEventListener.OnPostInsert(PostInsertEvent evt) at NHibernate.Action.EntityInsertAction.PostInsert() at NHibernate.Action.EntityInsertAction.Execute() at NHibernate.Engine.ActionQueue.InnerExecute(IExecutable executable) at NHibernate.Engine.ActionQueue.ExecuteActions[T](List`1 list) at NHibernate.Engine.ActionQueue.ExecuteActions() at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session) at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event) at NHibernate.Impl.SessionImpl.Flush()

ho ihu

unread,
Jan 4, 2022, 3:16:32 PMJan 4
to nhusers
did you receive any solution for this error bro, I have the same one when maping list of parent items and list of children.

error: NHibernate.MappingException: 'No persister for: System.Collections.Generic.List`1[[IHU.AcademicPerformance.Models.Models.Project, IHU.AcademicPerformance.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'

18 Eylül 2021 Cumartesi tarihinde saat 21:11:44 UTC+3 itibarıyla nikita...@gmail.com şunları yazdı:

Frédéric Delaporte

unread,
Jan 4, 2022, 3:18:29 PMJan 4
to nhusers
See the GitHub issue tracker for Envers. https://github.com/nhibernate/nhibernate-envers/issues/37
Reply all
Reply to author
Forward
0 new messages