• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic