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: Two Connections
PostPosted: Thu Aug 30, 2007 10:01 am 
Newbie

Joined: Sat Sep 09, 2006 5:54 pm
Posts: 2
Hello!
Is it possible to use two different schemas (Oracle) in NHibernate? Or to connect on to databases in MS SQL Server 2000.

Example: I need a information on table Material in schema STOK and also select a employee on table people in schema RH.

How do this in hibernate.cfg.xml?

Someone help me?

Thanks!!

Jorge Felippe


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 31, 2007 8:22 am 
Newbie

Joined: Tue Aug 15, 2006 11:01 am
Posts: 10
As per http://www.hibernate.org/hib_docs/nhibernate/html/mapping.html#mapping-declaration-class, you can set the schema attribute on the class element in your mapping files.


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.