-->
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.  [ 3 posts ] 
Author Message
 Post subject: Cannot find getter for aWidget in class com.my.model.A.X.X
PostPosted: Wed Mar 09, 2005 12:16 pm 
Newbie

Joined: Tue Mar 08, 2005 2:08 pm
Posts: 5
I have a class X with several properties named:
aWidget
bWidget
cWidget

And I have getters for those properties:
public String getAWidget()
public String getBWidget()
public String getCWidget()

When I try to load the hibernate configuration and create a session I get this exception:
net.sf.hibernate.PropertyNotFoundException: Could not find a getter for aWidget in class com.my.model.A.X.X
at net.sf.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:182)
at net.sf.hibernate.mapping.Property.getGetter(Property.java:175)
at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:750)
at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:692)
at net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:42)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:137)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:796)

Hibernate 2.1.7c


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2005 12:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
FAQ: http://www.hibernate.org/116.html#A33


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2005 12:46 pm 
Newbie

Joined: Tue Mar 08, 2005 2:08 pm
Posts: 5
DOH! I knew that, really I did. Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.