-->
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: FK from multiple tables
PostPosted: Thu Mar 31, 2005 6:47 pm 
Regular
Regular

Joined: Thu Sep 23, 2004 11:53 am
Posts: 83
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:2.1

Mapping documents:na

Code between sessionFactory.openSession() and session.close():na

Full stack trace of any exception that occurs:na

Name and version of the database you are using:Oracle 10g

The generated SQL (show_sql=true):na

Debug level Hibernate log excerpt:na

Question is how to map a FK that is made up of 3 columns from 3 different tables? I have the "hibernate in action" and "hibernate a develoepr's notebook" books, so you can reference chapters in those if applicable.

so what we have is ...

tableA
column1 foriegnKey(tableB.column, tableC.column, tableD.column)


Thanks in advance :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 5:36 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
you have to make 3 Fk's


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.