-->
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: default_schema ignored in DB2?
PostPosted: Thu Feb 14, 2008 6:50 pm 
Newbie

Joined: Thu Feb 14, 2008 6:45 pm
Posts: 1
Hi All,

I've been searching for a solution to the following problem but to no avail. I am using hiberate to interact with DB2 on iSeries/AS400. My configuration file uses the url: jdbc:as400:##.###.#.###/MYLIBA;prompt=false.

I then declare a default schema as MYLIBB. If I execute queries session.createSQLQuery(sql).list(), I get data from MYLIBA, not MYLIBB. If I remove MYLIBA from my connection to leave jdbc:as400:##.###.#.###/;prompt=false then Hibernate attempts to use my connection username as the schema.

Anybody have any ideas as to how I can get around this problem without dynamically generating the url to include the library I want to use?

Thanks in advance,
ksp


Top
 Profile  
 
 Post subject: Re : default_schema ignored in DB2?
PostPosted: Fri May 02, 2008 4:31 am 
Newbie

Joined: Fri May 02, 2008 4:11 am
Posts: 3
I hope proper connection url could help.

http://rmwebcafe.blogspot.com/search?q=using+hibernate

_________________
Ratnesh Mathur
http://rmwebcafe.blogspot.com/


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.