Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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??
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!