wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with select query in hibernate
 
Similar Threads
Problem in many to one relation.
Exception in thread "main" java.lang.NoSuchFieldError: tokenTypeToASTClassMap
Table not mapped.
Using SQL date() function in HQL Select
org.hibernate.hql.ast.QuerySyntaxException: INFORMATION_SCHEMA.SYSTEM_ALIASES is not mapped.