-->
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.  [ 1 post ] 
Author Message
 Post subject: Mapping primary keys
PostPosted: Tue Jun 24, 2008 5:30 am 
Newbie

Joined: Mon Jun 23, 2008 4:25 am
Posts: 3
Location: Sri Lanka
Hi all,
I have designed database with five tables. the fifth table contains all the primary keys of the first for tables as foreign keys.

Sample Structure

First Table
First_Id(Primary Key)
First_Name

Second Table
Second_Id(Primary Key)
Second_Name

Third Table
Third_Id(Primary Key)
Third_Name

Forth Table
Forth_Id(Primary Key)
Forth_Name

Fifth Table
First_Id(Foreign)
Second_Id(Foreign)
Third_Id(Foreign)
Forth_Id(Foreign)
Data
OtherFields

i have wrote all the mapping files for the first four tables. But with the foreign keys it gives errors. can u guys have a idea of how to write a mapping file for the fifth table?

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.