hi
i have the following error.....
NHibernate.MappingException: Problem trying to set association type by reflection ---> NHibernate.MappingException: Problem trying to set association type by reflection ---> NHibernate.PropertyNotFoundException: Could not find a getter for property 'unit' in class 'bsm.Product'
at NHibernate.Property.BasicPropertyAccessor.GetGetter(Type type, String propertyName)
at NHibernate.Util.ReflectHelper.GetGetter(Type theClass, String propertyName, String propertyAccessorName)
at NHibernate.Mapping.ManyToOne.SetTypeByReflection(Type propertyClass, String propertyName, String propertyAccess)
--- End of inner exception stack trace ---
at NHibernate.Mapping.ManyToOne.SetTypeByReflection(Type propertyClass, String propertyName, String propertyAccess)
my product.hbm.xml contains the following line....
Code:
<many-to-one name="unit" column="unit" />
and Product.cs has the following method.....
Code:
public Unit unit
{
get
{
return unit;
}
set
{
unit = value;
}
}
what am i doing wrong ? thanks in advance...