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
|
|