This thread has been locked & this forum has been archived.
Please post new topics to Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Author Message
vitaliys
Registered Member
Registered Member


Joined: May 24, 2007
Posts: 1

We are mapping a table to Hibernate POJO class and MyEclipse generated us ???.hbm.xml mapping fileas well as Java bean with setters and getters. While trying it load POJO class Hibernate throws the following exception :

Exception in LoginDAO.getDetails : org.hibernate.PropertyNotFoundException: Could not find a getter
for ordersSeqid in class xxx.hibernate.POJO.UsersOrders
org.hibernate.PropertyNotFoundException: Could not find a getter for ordersSeqid in class xxx.UsersOrders

I searched this site before and tried to change setter and getter methods with lower case "getordersSeqid" instead of "getOrdersSeqid", however it didn't help.

We are using Hibernate 3.0 and WebLogic9.0 as an app server.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

The correct case would be "getOrdersSeqid" as you had it, that will generate:
1) Pull off the "get"
2) Lowercase the first letter
3) You get "ordersSeqid"

Can you re-gen the table, to make sure none of your customizations are in there, and then post the getter and setter from the POJO here, also the HBM.xml file contents?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bartolomeo.romano
Registered Member
Registered Member


Joined: Nov 20, 2007
Posts: 1

I've got a very strange problem as the same code on two different computers work sdifferently.
On one it works properly on the other I get this error......
 
 View user's profile Send private message  
Reply with quote Back to top
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
® 2014 - Genuitec, LLC.