Thanks, but now I have another exception (!)
The line in the mapping file is now:
<property column="PASSWORD" type="System.Object,System" name="Password" not-null="true" />
and I get the following exception:
+ [NHibernate.MappingException] {NHibernate.MappingException} NHibernate.MappingException
"could not interpret type: System.Object,System"
_stackTraceString " at NHibernate.Cfg.Binder.GetTypeFromXML(XmlNode node)\r\n at NHibernate.Cfg.Binder.BindSimpleValue(XmlNode node, SimpleValue model, Boolean isNullable, String path, Mappings mappings)\r\n at NHibernate.Cfg.Binder.PropertiesFromXML(XmlNode node, PersistentClass model, Mappings mappings)\r\n at NHibernate.Cfg.Binder.BindRootClass(XmlNode node, RootClass model, Mappings mappings)\r\n at NHibernate.Cfg.Binder.BindRoot(XmlDocument doc, Mappings model)\r\n at NHibernate.Cfg.Configuration.AddValidatedDocument(XmlDocument doc)\r\n at NHibernate.Cfg.Configuration.AddXmlReader(XmlTextReader hbmReader)\r\n at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream)\r\n at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly, Boolean skipOrdering)\r\n at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly)\r\n at NHibernate.Cfg.Configuration.AddAssembly(String assemblyName)\r\n at NHibernate.Cfg.Configuration.DoConfigure(XmlDocument doc)\r\n at NHibernate.Cfg.Configuration.Configure(XmlTextReader reader)\r\n at NHibernate.Cfg.Configuration.Configure(String resource)\r\n at DAOHibernate.Impl.ConnectionDAO.InitConnectionDAO() in c:\\developpement\\sgc\\daohibernate_cs\\impl\\connectiondao.cs:line 34
Do I need to write anything else in my mapping file?
|