-->
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: Primary Key made of 2 foreign keys and a date
PostPosted: Sun Mar 26, 2006 5:18 pm 
Regular
Regular

Joined: Mon Sep 29, 2003 9:39 am
Posts: 67
Need to map a table called Event, that has for it's primary key, PersonId, LocationId, and EventDate. The schema is here to stay.

How do you create a composite key that has two other entities as part of its key?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 26, 2006 7:42 pm 
Regular
Regular

Joined: Mon Sep 29, 2003 9:39 am
Posts: 67
Bad question - simple answer - just declare the 2 entities with m-to-o inside the composite key class, and map as usual.


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.