-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to set a default DB schema?
PostPosted: Mon Dec 20, 2004 5:12 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Sorry if this has been asked before, the forum search returned just to many results :-(.

In order to do independant unit testing, we have a different schema for every developer. Also our customers are using the application with schema names they choose and even change themselfs. Unfortunately the schema has to be set in the hbm.xml file. I found no other way than do some XML processing befor feeding the hbm.xml files into Hibernate's Configure.

Is there a nicer way to set a default schema for Configuration/SessionFactory?

TIA
Ernst


Hibernate version:
2.1.7

Name and version of the database you are using:
Oracle 8 and 9


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 20, 2004 5:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
hibernate.default_schema


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 20, 2004 5:24 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Thanks a lot!
Ernst


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.