• Post Reply Bookmark Topic Watch Topic
  • New Topic

one to many mapping

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an example there is a student class which has a reference to a course class.
when we are going to create a hbm file we have to map student object to two database tables.
can anyone give good example or tutorials.
Don't give example with Annotation ,because i am not much familier with annotation?
 
Prabhat Jha
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A simple internet search will fetch you loads of tutorials,

here is one which doesnt use annotation to do the mapping

Hibernate Mapping One To One

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!