-->
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.  [ 1 post ] 
Author Message
 Post subject: MappingException, PropertyNotFoundException
PostPosted: Mon Jun 06, 2005 2:03 pm 
Newbie

Joined: Tue May 17, 2005 6:23 am
Posts: 5
Hi All
I am getting following error when tried to save in the database table,net.sf.hibernate.MappingException: Error reading resource: registeredNormUser.h
m.xml
at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:34
)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:10
7)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:98
)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:911)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:897)
at src.util.HibernateSession.currentSession(HibernateSession.java:19)

caused by
Caused by: net.sf.hibernate.MappingException: Problem trying to set property type by reflection
caused by

Caused by: net.sf.hibernate.PropertyNotFoundException: field not found: lastname

Here is my .hbm.xml file in which I have mentioned lastname field. also lastname field is present in pojo with getter and setter method.
<property name="lastname">
<column name="LAST_NAME" length="50" not-null="false"/>
</property>

I am not able to fix this error
Please help
Thanks


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

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.