A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
could not execute query
Joined: Feb 22, 2006
Feb 22, 2006 17:07:00
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.
Joined: Nov 24, 2005
Feb 22, 2006 18:43:00
Could you please post your configuration ?
All roads lead to JavaRanch
I agree. Here's the link:
subject: could not execute query
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013