This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes could not  execute query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "could not  execute query" Watch "could not  execute query" New topic

could not execute query

Raju Kriss

Joined: Feb 22, 2006
Posts: 1
Hibernate version:3.0


I am getting "could not execute query exception" when I try to execute SQL query through hibernate.

I am using DB2 database and Hibernate3.0.
I found that Hibernate is attaching the user name before the table instead of the schema name. Thats why it is giving that error.

Can anyone tell why Hibernate is not using schema name for executing queries even though i specified in configuration file.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Could you please post your configuration ?

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: could not execute query
It's not a secret anymore!