aspose file tools*
The moose likes Object Relational Mapping and the fly likes Problem with select query in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Problem with select query in hibernate" Watch "Problem with select query in hibernate" New topic
Author

Problem with select query in hibernate

chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 800

Hi all, I am facing problem in issuing select command using hibernate. I wrote a sample codeWhen I try to execute this program I am getting an error like this
What is the problem? Thank you all in advance.


Love all, trust a few, do wrong to none.
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 800

Hi all, I fixed the problem. This post helped me fix the problem.

I was supposed to supply the POJO class name and the POJO class properties in the query. But I gave the database column names and table name in the query.
 
 
subject: Problem with select query in hibernate