-->
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: Foreign-key between 2 different schemas and Hibernate
PostPosted: Mon Jan 02, 2006 6:15 am 
Newbie

Joined: Tue Jan 18, 2005 7:08 am
Posts: 10
Hello everyone,

I have a table A in schema 1 which has a foreign key to table B in schema 2.
I use two mapping files, one for schema 1 and one for schema 2.
Now my question: can I tell Hibernate that table A has a foreign key on table B, and if so, how?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 02, 2006 5:06 pm 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
It's no different from foreign keys within the same schema. Did you try it and are having problems, or are you just asking if it's possible? (The <class> tag has a schema attribute)

_________________
nathan


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.