-->
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.  [ 3 posts ] 
Author Message
 Post subject: problem with one to one mapping
PostPosted: Mon May 12, 2008 9:33 am 
Newbie

Joined: Mon May 12, 2008 9:30 am
Posts: 2
Hi,
i m having problem in creating one to one mapping.
Whatever i know is it can be done in two ways
1> primary ky association and 2> unique foreign key associations

but the primary keys must be same in both of the tables.

I want one to one mapping between two tables where on can have lesser no of primary keys.

please suggest me a way out for the problem


Top
 Profile  
 
 Post subject: suggestion
PostPosted: Tue May 13, 2008 5:38 am 
Senior
Senior

Joined: Sun Jun 11, 2006 10:41 am
Posts: 164
In option #2, the associated rows don't have to have the same PK. did you try this approach?


Top
 Profile  
 
 Post subject: Re: suggestion
PostPosted: Tue May 13, 2008 8:50 am 
Newbie

Joined: Mon May 12, 2008 9:30 am
Posts: 2
sagimann wrote:
In option #2, the associated rows don't have to have the same PK. did you try this approach?


yah i tried it..and the problem was same..


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.