• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple one to one mapping (mapping one table to multiple table with one to one mapping)

 
vineet bindal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to map my table1 to tbale2, table3, and table 4 by one to one mapping.

I am able to do this by using simple one to one mapping.

Whats the problem?

What i want is if table has 9 rows with id, 1,2,3,4,5,6,7,8,9
tabele2, table3, and table 4 should look , say:

table2 :2,3,4
table3: 1,5,6
table4: 7,8,9

How can i do this in hibernate? can i do this atall?
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't get what you want. Could you explain it a bit further? Hibernate/JPA is used for mapping entities and I doubt that is what you are trying to do here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic