-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: still getting the no getter found errors...
PostPosted: Sun Jun 05, 2005 6:51 am 
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..


Top
  
 
 Post subject: ok - all working now
PostPosted: Sun Jun 05, 2005 7:40 am 
Thanks guys...i managed to solve it....

used schemaexport successfully....collections...next yiw....


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.