In a SaveOrUpdate
call I'm getting the MappingException No persister for: MyClassProxy
.
What's strange is that I am able to insert new rows with the code, but if that row exists and the repository tries to update it, I'm getting this exception.
After searching and reading a lot of questions about this exception, that didn't help me to find the reason for this, I'll ask myself: What possible reasons can lead to this exception, if the mapping works for reading / inserting data?
Some more information about my case:
- using NHibernate version 3.3.1.4000
- the mapping is created by code (not fluent) and in another dll that is referenced
- the mapping consists of a
ClassMapping
and aSubclassMapping
with a discriminator