As the subject suggests I have problem with deleting the records in many to many relationship.
I have referred the link in forum and is quiet helpful
http://forum.hibernate.org/viewtopic.ph ... manytomany
I have a many to many relationship between the Employee and Project.
As per the link mentioned above everthing works fine when I delete Employee where i have mentioned cascade="save-update". and Project records left alone where i have mentioned inverse="true" But I also want the same functionality from Project side. I mean when I delete Project record, it should just delete the links and the Project Record and leave the employee records alone.
Logically, I tried to put cascade=" save-update" at project side as well but it is of no help. I am getting same exception " constraint violation"
I know the solution of this problem must be easy and I must have overlooked but your help would be great.
I am also wondering that at first place is it possible. My comman sense and the defination of bi-derectional relationship says "yes" but I may be wrong.
Guys and Gals, Look forward to your replies
Your help is much appreciated.
Rahul