This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "could not  execute query" Watch "could not  execute query" New topic
Author

could not execute query

Raju Kriss
Greenhorn

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

Hi,

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.

Thanks
Raj
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Could you please post your configuration ?


[My Blog]
All roads lead to JavaRanch
 
 
subject: could not execute query