I can do 1 to many unidrectional mapping through both @JoinColumn or @JoinTable. whats the difference between two?
Shailesh Kini
Ranch Hand
Joined: Oct 17, 2001
Posts: 153
posted
0
Hi Ambar,
Use @JoinColumn when the Entities have direct relationship i.e a foreign key between Entity1 and Entity2. Use @JoinTable when you manage the relationship between Entities in another table also referred to as JoinTable.