Hibernate version:3.2.6
I'm a newbie in hibernate but i know the basic mapping like one-to-many and many-to-many. However, i was stuck on a certain scenario and I've been trying to solve this. I searched through the internet but unfortunately couldn't find any solution.
Given the ERD below, user has a discriminator column where M is manager and D is developer. Manager table (which is the user) has many-to-many relationship with Developer table (which is also user).
In addition, the manager has many task hence the joining table manager_tasks. Also, manager can assign task to his developers.
How do i map developer_task from developer such that when i add tasks for a developer it would insert primary keys? I'm using many-to-many mapping hence i don't have concrete classes for manager_developers and manager_tasks.
Thanks in advance for your help.