This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between mappedby and @joincolumn  RSS feed

 
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: 491
5
  • 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
Boost this thread!