Note that there are some explanatory texts on larger screens.

plurals
  1. POnHibernate one-to-many mapping question
    text
    copied!<p>I am getting this exception when mapping one-to-many relation. my mapping xml looks like this: </p> <pre><code>&lt;set name="-----" generic="true" inverse="true" cascade="all" lazy="false"&gt; &lt;key column="Id" /&gt; &lt;one-to-many class="-----------,---------" /&gt; &lt;/set&gt; </code></pre> <p>And, </p> <pre><code>&lt;many-to-one name="------" column="Id" not-null="true" class="---------,-------" /&gt; </code></pre> <p>and the Exception:</p> <pre><code>------ Test started: Assembly: ----------.dll ------ TestCase '-------.GetSchema' failed: NHibernate.MappingException : Could not determine type for: Iesi.Collections.Generic.ISet`1[[-----------, --------, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Iesi.Collections, Version=1.0.1.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, for columns: NHibernate.Mapping.Column(--------) at NHibernate.Mapping.SimpleValue.get_Type() at NHibernate.Mapping.SimpleValue.IsValid(IMapping mapping) at NHibernate.Mapping.Property.IsValid(IMapping mapping) at NHibernate.Mapping.PersistentClass.Validate(IMapping mapping) at NHibernate.Mapping.RootClass.Validate(IMapping mapping) at NHibernate.Cfg.Configuration.Validate() at NHibernate.Cfg.Configuration.BuildSessionFactory() at in 0 passed, 1 failed, 0 skipped, took 4.20 seconds (NUnit 2.5.2). </code></pre> <p>Please tell me whats going on here. Thanks, Reddy</p> <p><strong>Edit: Sorry folks, It's a typo, i found it after posting my question... weird....</strong></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload