I am referring to the example at -
http://viralpatel.net/blogs/hibernate-many-to-many-annotation-mapping-tutorial/
Employees can attend many
Meetings and Meetings can be attended by many Employees.
Let then owning class be Employee. The many to many mapping code inside Employee will be -
I looked at several other examples and documentation, but I am still not sure how this works. I don't think I fully understand what joinColumns and inverseJoinColumns do.
joinColumns={@JoinColumn(name="EMPLOYEE_ID")} - Does this line only tell hibernate that Employee id of employee joins employee id of the mapping table ?
inverseJoinColumns={@JoinColumn(name="MEETING_ID")}) ? Does this line only tell hibernate to join Employee id to the Meeting_Id column in the link table ?