Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 1.2.1.4 GA
Mapping documents: Using Attributes
There may be a very easy answer to this, but I can't find it.
I'm using NHibernateContrib and the NHibernate.Mapping.Attributes method for creating my object mappings.
Whenever I try to add my mappings to my assembly (using cfg.AddInputStream) I get the following error:
Problem loading assembly into NHibernate. Exception: (3,2): XML validation error: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'. Inner Exception: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'.
So basically NHibernate.Mapping.Attributes is generating xml with the wrong namespace for the current version of NHibernate. Looking at the code for Attributes.HbmSerializer, I see that the xml namespace is hardcoded to 2.0.
Is this correct? Is there any runtime work around to this issue? Do I really have to compile my own NHibernateContrib to make this work? Thanks for any help!
Matthew