Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic