aspose file tools
The moose likes Object Relational Mapping and the fly likes could not  execute query Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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: 14669
    
  11

Could you please post your configuration ?


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: could not execute query
 
Similar Threads
Dynamically setting schema name for native queries in hbm file
Configuring Datasource to use a default schema
Help required on weblogic connection pool properties
Problem with count() function and composed primary key
Batch Delete Problem