hi it appears that my Activity.hbm.xml is corrupted in some way...anyway i can now compile if i exclude the Activity.hbm.xml and i'm still getting those pesky no getter found errors....
NHibernate.PropertyNotFoundException: Could not find a getter for property 'Customer' in class 'bsm.Activity'
at NHibernate.Property.BasicPropertyAccessor.GetGetter(Type type, String propertyName)
at NHibernate.Persister.AbstractEntityPersister..ctor(PersistentClass model, ISessionFactoryImplementor factory)
at NHibernate.Persister.EntityPersister..ctor(PersistentClass model, ISessionFactoryImplementor factory)
at NHibernate.Persister.PersisterFactory.Create(PersistentClass model, ISessionFactoryImplementor factory)
at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, Settings settings)
at NHibernate.Cfg.Configuration.BuildSessionFactory()
at CodeGeneration.Class1.Main(String[] args)
at NHibernate.Property.BasicPropertyAccessor.GetGetter(Type type, String propertyName)
at NHibernate.Persister.AbstractEntityPersister..ctor(PersistentClass model, ISessionFactoryImplementor factory)
at NHibernate.Persister.EntityPersister..ctor(PersistentClass model, ISessionFactoryImplementor factory)
at NHibernate.Persister.PersisterFactory.Create(PersistentClass model, ISessionFactoryImplementor factory)
at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, Settings settings)
at NHibernate.Cfg.Configuration.BuildSessionFactory()
at CodeGeneration.Class1.Main(String[] args)
my Activity.hbm.xml file contains the following....
Code:
<many-to-one name="Customer" class="bsm.Customer, NHibernate.bsmcrm" column="customer_id" />
and my Activity.cs contains the following method...
Code:
public Customer customer_id
{
get
{
return customer_id;
}
set
{
customer_id = value;
}
}
shit i am about to pull all my hair out...what am i doing wrong ?