Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between mappedby and @joincolumn

 
ajse ruku
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to create a one to many relationship and i can see "mapped by" is used in parent side and @JoinColumn on the child side. Event if we use @JoinColum on parent side, it works. So i am not clear at this point when to use mapped by and when @JoinColumn. Please advice.

Thanks
 
H Paul
Ranch Hand
Posts: 471
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

To teach is to learn twice.


I never intend to teach but rather learning thrice.

So speaking of learning: if possible, can you the example so that I can see?
 
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!