I can do 1 to many unidrectional mapping through both @JoinColumn or @JoinTable. whats the difference between two?
posted 9 years ago
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.