• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Primary-Foreign Key relationship via hibernate

 
praveen sharma
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I am new in hibernate,
i don't have much of an idea about it.
I would appreciate if somebody send me 1 to many relationship code via email
 
stanislav bashkirtsev
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use google.com ;)
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a little tutorial I put together on the topic of mapping one to many associations.

Mapping One to Many Associations with Hibernate

The key tends to be the one to many mapping:





And the many to one mapping:








 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic