-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: SQLSTATE=42704 Schema was not reflected in query
PostPosted: Wed Aug 11, 2004 7:08 pm 
Newbie

Joined: Fri Aug 06, 2004 4:48 pm
Posts: 8
Hibernate version: 2.1.3

Mapping documents: hibernate.hbm.xml

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using: DB2 V7.2

Debug level Hibernate log excerpt:

The error message saying: ...jdbc.DB2Exception: ..."DB2ADMIN.ORDER" is an undefined name. SQLSTATE=42704
........

The schema name needs to be but was not used, and the user name (DB2ADMIN) was used, instead.
How should the schema name is defined in mapping file, in addition to table, columns, etc...?

Any help is greatly appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 12, 2004 3:30 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
search for the following keywords, this page http://www.hibernate.org/hib_docs/reference/en/html/session-configuration.html
hibernate.default_schema
hibernate.connection.url
hibernate.connection.datasource

schema should be set in the datasource settings or in hibernate.connection.url.

_________________
Leonid Shlyapnikov


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.