Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate One to One Associate with Composite Key having different Column Names

 
Naresh Kavala
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,

I have two tables with composite id having one to one relationship.

Table One : PK Columns : column1, column2
Table Two : PK Columns : column3, column4.

Columns are having different names. I have to map column1 – column3 and column2-column4.
How to give one to one association in xml configuration. Could you post any guidance links.

Regards,
Naresh.
 
Naresh Kavala
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any ideas or suggestions please??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic