-->
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: Composite Foreign Key
PostPosted: Mon Feb 18, 2008 7:09 am 
Newbie

Joined: Fri Feb 01, 2008 2:31 am
Posts: 1
Location: Vadodara,Gujarat,India
Hi,
Am new to hibernate and doing a web project based on hibernate and spring. I am facing a problem. In my database i have a table which has a field that is a foriegn key from other table and along with another field it forms the composite key. So i need your guidance to solve this problem. How am i to map these fields in the xml file and what all classes am i to create?
Also tell me how to handle this composite foreign key in other tables.

Hoping for a fast positive reply as i need it urgently.
Thanks in advance.


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.