I started getting this after I started using a new design for a
repository, but only in one scenario, which is the weird part. Tests
that validate the mapping and the repository itself run fine.

The repository root is Projects, and the scenario that leads to the
exception is when legacy projects from a different db are converted to
the green field system. The previous repository handled this fine too,
and there is no code change in the conversion routine except for the
implemented IProjectRepository.

Rather than posting my entire code base or more english to this post,
I'm hoping someone here can spot a symptom from the exception and
brief description, or at least ask a good question or two to narrow it
down. I guess the repository itself is the major suspect, but that's
as far as I can get it right now.

Thanks,
Berryl

=== the Exception trace =====

failed: NHibernate.MappingException : No persister for:
Domain.Model.Projects.Project
at NHibernate.Impl.SessionFactoryImpl.GetEntityPersister(String
entityName)
at NHibernate.Impl.SessionImpl.GetEntityPersister(String entityName,
Object obj)
at
NHibernate.Event.Default.AbstractSaveEventListener.SaveWithGeneratedId(Object
entity, String entityName, Object anything, IEventSource source,
Boolean requiresImmediateIdAccess)
at
NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.SaveWithGeneratedOrRequestedId(SaveOrUpdateEvent
event)
at
NHibernate.Event.Default.DefaultSaveEventListener.SaveWithGeneratedOrRequestedId(SaveOrUpdateEvent
event)
at
NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.EntityIsTransient(SaveOrUpdateEvent
event)
at
NHibernate.Event.Default.DefaultSaveEventListener.PerformSaveOrUpdate(SaveOrUpdateEvent
event)
at
NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.OnSaveOrUpdate(SaveOrUpdateEvent
event)
at NHibernate.Impl.SessionImpl.FireSave(SaveOrUpdateEvent event)
at NHibernate.Impl.SessionImpl.Save(Object obj)
NHibernate\Repository\NHibRepository.cs(40,0): at
Core.Data.NHibernate.Repository.NHibRepository`1.Add(T item)
Repositories\ProjectRepository.cs(30,0): at
Data.Repositories.ProjectRepository.SaveAll(IEnumerable`1 projects)
LegacyConversion\LegacyBatchUpdater.cs(20,0): at
Data.LegacyConversion.LegacyBatchUpdater.ConvertOpenLegacyProjects(ILegacyProjectDao
legacyProjectDao, IProjectRepository greenProjectRepository)
Data\Brownfield\ProjectBatchUpdate_SQLiteTests.cs(31,0):
at .Tests.Data.Brownfield

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to