• Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate one- to one unidirectional mapping

 
anuja Edathu
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have noticed, to represent a unidirectional one to one mapping ,
<many-to-one> mapping with unique constraint true is generally being used .



Can any body tell me why can't we use the <one-to-one> mapping ? if we can use the aforesaid , could you tell me how can use that ?

Thanks & Regards
Anuja K
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
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!