Hi Everybody
I am new to this forum, and I am learning the hibernate I have a question in the hbm file creation -----
The scenario is I have an Employee table with empId as Primary key and I have a Department table with DepartmentId as the primary key. In the same database I have one more table which is EmployeeDepartment where one employee can have multiple departments,,, In this table I have only two fields EmpId and DepartmentId, now I want to create a hbm for EmployeeDepartment so what will be the structure and how will be the mapping............
Please, give me a feed back with an example so that I am able to use that hbm and able to insert the data into that table by using a front-end.
Regards,
Sarikaa
|