Hibernate many to many mapping example using annotation
In this post we are going to show you how to use Many-To-Many association in hibernate using annotation. For One-To-Many association example you can traverse my previous post One-To-Many association example using annotation . Many-To-Many association means, One or more row(s) of a table are associated one or more row(s) in another table. For example an employee may assigned with multiple projects, and a project is associated with multiple employees. In this post we are going to show you the same employee and project association using annotation, below are the listed table for our this project. Employee table: employee_id first_name last_name doj 101 Tony Jha 2014-08-28 102 Zeneva S. Humphrey 2014-07-04 Project table: project_id project_name start_date exp_end_date 101 MARS 2013-01-01 2015-08-28 102 SBA 2014-10-02 2016-07-04 Employee_Proj table...