ok, it appears my Activity.hbm.xml is corrupted...i can compile fine without that but I am still getting those pesky no getter errors...
stack trace...
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)
C:\MICROSOFT.NET\bsmcrm-alpha\lib>
my Activity.hbm.xml file contains the following many-to-one element..
Code:
<many-to-one name="Customer" class="bsm.Customer, NHibernate.bsmcrm" column="customer_id" />
and my Activity.cs has the following method...
Code:
public Customer customer_id
{
get
{
return customer_id;
}
set
{
customer_id = value;
}
}
i am about to tear all my hair out...what am i doing wrong..