Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Object Relational Mapping and the fly likes Hibernate Criterion query: org.hibernate.exception.SQLGrammarException: could not execute query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Criterion query: org.hibernate.exception.SQLGrammarException: could not execute query" Watch "Hibernate Criterion query: org.hibernate.exception.SQLGrammarException: could not execute query" New topic
Author

Hibernate Criterion query: org.hibernate.exception.SQLGrammarException: could not execute query

Romeo Ranjan
Ranch Hand

Joined: Feb 23, 2009
Posts: 95
Hi All,

I have been trying to implement a sql query in hibernate using the criteria API desperately. I have been getting this exception all along can someone please point what I am missing?

Here is the criteria query


Below is the exception that I get


The sql query that I am trying to implement


SCJP 6.0
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Hibernate Criterion query: org.hibernate.exception.SQLGrammarException: could not execute query