• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate many-many and many-one issues

 
sai rama krishna
Ranch Hand
Posts: 432
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was working on below hibernate many-many and many-one example

http://www.dzone.com/tutorials/java/hibernate/hibernate-example/hibernate-mapping-many-to-many-1.html


http://www.dzone.com/tutorials/java/hibernate/hibernate-example/hibernate-mapping-many-to-one-1.html

I wonder what is the need of intermediate table like student_course

I also did not see any relationship between the student and adress is not getting established in the code to insert data into student_course table.
I wonder how the data will be inserted without the relationship between the student and adress in the code.
How many-many example approach is different from many-one or one-one with code integration and table relationship.
Please advice
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic