-->
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: Many-to-Many Join Table Primary Key Recommendation
PostPosted: Thu Sep 22, 2005 1:28 pm 
Newbie

Joined: Tue Sep 20, 2005 10:22 pm
Posts: 6
Hi,

I currenly am using Composite primary key for a many to many join table. Is this recommend? Or should i use a auto-incretmenting ID column and create a unique key (composite) on the two foreign key columns?

im using MSSQL and Firebird

Currently table looks like this

ProductID -primary key 1
CategoryID -primary key 2
Notes

it appears that by NOT using composite keys it will make my life easier :)

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.