• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bidirectional One-To-One

 
Lalit mishra
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one doubt in Bidirectional One-to-One mapping.
Suppose there are 2 entities A(owner of the relationship),B
so there should be only one foreign key in Entity A for Entity B.
But suppose its the other way
if B is the owner what will be the case .??
 
Jianfeng Qian
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think:
if B is the owner ,then B has only one foreign key.
In condition of "Bidirectional One-To-One":
the owner side has a foreign key,and the other side doesn't have
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!