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: what if i dont have a primary key in a table ???????
PostPosted: Wed Sep 21, 2005 10:05 am 
Newbie

Joined: Wed Sep 21, 2005 9:58 am
Posts: 1
Location: Karachi
Hey geeks
i need a help ...
I have a table without a primary key but with a foriegn key with a foriegn key with UNIQUE constraint, which can be used as an id.
I am getting an error while running hibernate ...

Can anyone tell me what if i dont have PK .. what to do then ???
and if i have FK with UNIQUE constraint , what changes are required in the mapping doc to work


thanx in advance

_________________
Syed Farhan Ali


Top
 Profile  
 
 Post subject: good/bad design
PostPosted: Wed Sep 21, 2005 10:27 am 
Beginner
Beginner

Joined: Thu Sep 08, 2005 9:24 pm
Posts: 20
Location: Boise Idaho
It's arguable that *not* having a primary key on any table is bad design but w/ that being said...is something preventing you from putting a PK on the table?


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.