-->
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: Problem of composite key
PostPosted: Wed Mar 02, 2005 10:22 am 
Beginner
Beginner

Joined: Thu Feb 24, 2005 8:27 am
Posts: 21
I have a table called Group with field groupid, userid, password. In this table groupid and userid is composite primary key.

I have another table called Userinformation. In this userid is foreing key for Group(userid)..
Problem is what should i specify in xml. fiile


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 02, 2005 1:44 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
if group have composite primary key then foreign key to group have to be composite too
this is relational database request (no hibernate)


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.