Hi rainerh,
I'm new to nhibernate too, but I fixed this two issues by changing the hbm2net application.
I wonder why no one else has these problems?! And why no one has answered to this question!
I changed file FieldProperty.cs line 132 to
..
Code:
return getScope("scope-get", "public virtual"); }
and
Code:
if (typeof(IType).IsAssignableFrom(clazz))
{
IType ut = (IType)SupportClass.CreateNewInstance(clazz);
log.Debug("Resolved type: " + type + " to " + ut.ReturnedClass.Name);
string t = clazzToName(ut.ReturnedClass);
return t;
}
in file ClassMapping.cs Line 584 of the NHibernate.Tool.hbm2net.Console-2.0 project.
I recompiled the app and this worked fine for me, but this is just a temp. solution. I'm also interested in finding out to do it right.
Ciao
Martin