This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Problem with select query in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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: 779

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

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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem with select query in hibernate
 
Similar Threads
org.hibernate.hql.ast.QuerySyntaxException: INFORMATION_SCHEMA.SYSTEM_ALIASES is not mapped.
Table not mapped.
Problem in many to one relation.
Using SQL date() function in HQL Select
Exception in thread "main" java.lang.NoSuchFieldError: tokenTypeToASTClassMap