• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with on to one mapping in hibernate

 
Rahul Kumar Singhal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!