-->
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: multiple database with multiple database users
PostPosted: Thu Dec 18, 2003 8:09 am 
Newbie

Joined: Thu Dec 18, 2003 7:26 am
Posts: 2
I need Hibernate to use different databases or database-schemas from one application. Can this be achieved using several Hibernate services in parallel or can it be achieved using multiple configuration files or both?

Or is there a completely different approach?

thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 18, 2003 8:21 am 
Newbie

Joined: Mon Sep 15, 2003 4:37 am
Posts: 6
Location: Frankfurt Germany
You could use the attribute "schema" in the class-element of the mappingfile to implement this.
like this
<class name="Person" table="t_person" schema="schema1">.
Other possibilities are to use the features of Your database (synomyms in oracle).
But i never tried it myself.

Greetings


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.