• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about hibernate mapping

 
santhosh kumar vk
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what is the use of one-to-one, one-to-many, many-to-one, many-to-many in hibernate can you help me and can you give clear example with database table and java code and also with diagram.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While posting meaningful questions, please choose the right forum. I'll move this from Meaningless Drivel to our ORM forum.
 
Vamsi Mohan
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ONE-ONE,ONE-MANY, .., are cardinal relationships between database tables. By using this cardinalities, data will be secured and easliy accessed. Hibernate automatically takes care about the relationships. By defining the relationships in the .xml files, we can achieve the relationships.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic