File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Hibernate Criterion query: org.hibernate.exception.SQLGrammarException: could not execute query
 
Similar Threads
Exception while calling encodeEnd on component.......
org.hibernate.exception.LockAcquisitionException
hibernate exception SQLGrammarException could not fetch initial value for increment
Hibenate & Oracle 10g
SQLGrammarException